forked from loafle/openapi-generator-original
Add Dart support
This commit is contained in:
39
samples/client/petstore/dart/lib/model/user.dart
Normal file
39
samples/client/petstore/dart/lib/model/user.dart
Normal file
@@ -0,0 +1,39 @@
|
||||
part of api;
|
||||
|
||||
|
||||
@Entity()
|
||||
class User {
|
||||
|
||||
int id = null;
|
||||
|
||||
|
||||
String username = null;
|
||||
|
||||
|
||||
String firstName = null;
|
||||
|
||||
|
||||
String lastName = null;
|
||||
|
||||
|
||||
String email = null;
|
||||
|
||||
|
||||
String password = null;
|
||||
|
||||
|
||||
String phone = null;
|
||||
|
||||
/* User Status */
|
||||
int userStatus = null;
|
||||
|
||||
|
||||
User();
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'User[id=$id, username=$username, firstName=$firstName, lastName=$lastName, email=$email, password=$password, phone=$phone, userStatus=$userStatus, ]';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user