/* Options: Date: 2025-12-06 13:09:42 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://etc-api.vsmlab.vn //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetDirectorRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class UserLogin implements IConvertible { // @required() String? name; UserLogin({this.name}); UserLogin.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; return this; } Map toJson() => { 'name': name }; getTypeName() => "UserLogin"; TypeContext? context = _ctx; } class UserProfile extends UserLogin implements IConvertible { int? id; String? fullName; String? email; int? departmentId; int? partyGroupId; String? avatar; String? telephone; DateTime? birthday; DateTime? createdAt; DateTime? updatedAt; int? failedLoginCount; // @ignore() List? roles; DateTime? lastLoginDate; UserProfile({this.id,this.fullName,this.email,this.departmentId,this.partyGroupId,this.avatar,this.telephone,this.birthday,this.createdAt,this.updatedAt,this.failedLoginCount,this.roles,this.lastLoginDate}); UserProfile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; fullName = json['fullName']; email = json['email']; departmentId = json['departmentId']; partyGroupId = json['partyGroupId']; avatar = json['avatar']; telephone = json['telephone']; birthday = JsonConverters.fromJson(json['birthday'],'DateTime',context!); createdAt = JsonConverters.fromJson(json['createdAt'],'DateTime',context!); updatedAt = JsonConverters.fromJson(json['updatedAt'],'DateTime',context!); failedLoginCount = json['failedLoginCount']; roles = JsonConverters.fromJson(json['roles'],'List',context!); lastLoginDate = JsonConverters.fromJson(json['lastLoginDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'fullName': fullName, 'email': email, 'departmentId': departmentId, 'partyGroupId': partyGroupId, 'avatar': avatar, 'telephone': telephone, 'birthday': JsonConverters.toJson(birthday,'DateTime',context!), 'createdAt': JsonConverters.toJson(createdAt,'DateTime',context!), 'updatedAt': JsonConverters.toJson(updatedAt,'DateTime',context!), 'failedLoginCount': failedLoginCount, 'roles': JsonConverters.toJson(roles,'List',context!), 'lastLoginDate': JsonConverters.toJson(lastLoginDate,'DateTime',context!) }); getTypeName() => "UserProfile"; TypeContext? context = _ctx; } class AllUserResponse implements IConvertible { List? users; int? code; String? message; int? totalCount; AllUserResponse({this.users,this.code,this.message,this.totalCount}); AllUserResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { users = JsonConverters.fromJson(json['users'],'List',context!); code = json['code']; message = json['message']; totalCount = json['totalCount']; return this; } Map toJson() => { 'users': JsonConverters.toJson(users,'List',context!), 'code': code, 'message': message, 'totalCount': totalCount }; getTypeName() => "AllUserResponse"; TypeContext? context = _ctx; } // @Route("/users/director", "Get") class GetDirectorRequest implements IReturn, IConvertible, IGet { GetDirectorRequest(); GetDirectorRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => AllUserResponse(); getResponseTypeName() => "AllUserResponse"; getTypeName() => "GetDirectorRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'etc_api.vsmlab.vn', types: { 'UserLogin': TypeInfo(TypeOf.Class, create:() => UserLogin()), 'UserProfile': TypeInfo(TypeOf.Class, create:() => UserProfile()), 'AllUserResponse': TypeInfo(TypeOf.Class, create:() => AllUserResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetDirectorRequest': TypeInfo(TypeOf.Class, create:() => GetDirectorRequest()), });