/* Options: Date: 2025-12-14 13:46:58 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://auth.migrantleap.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetUsers.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class BaseResponse implements IConvertible { ResponseStatus? responseStatus; BaseResponse({this.responseStatus}); BaseResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "BaseResponse"; TypeContext? context = _ctx; } class MUser implements IConvertible { String? id; String? email; String? firstName; String? lastName; String? country; String? language; String? birthDate; String? address; String? address2; String? city; String? state; String? zipCode; String? phoneNumber; bool? emailConfirmed; String? healthId; String? memberId; String? subscription; MUser({this.id,this.email,this.firstName,this.lastName,this.country,this.language,this.birthDate,this.address,this.address2,this.city,this.state,this.zipCode,this.phoneNumber,this.emailConfirmed,this.healthId,this.memberId,this.subscription}); MUser.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; email = json['email']; firstName = json['firstName']; lastName = json['lastName']; country = json['country']; language = json['language']; birthDate = json['birthDate']; address = json['address']; address2 = json['address2']; city = json['city']; state = json['state']; zipCode = json['zipCode']; phoneNumber = json['phoneNumber']; emailConfirmed = json['emailConfirmed']; healthId = json['healthId']; memberId = json['memberId']; subscription = json['subscription']; return this; } Map toJson() => { 'id': id, 'email': email, 'firstName': firstName, 'lastName': lastName, 'country': country, 'language': language, 'birthDate': birthDate, 'address': address, 'address2': address2, 'city': city, 'state': state, 'zipCode': zipCode, 'phoneNumber': phoneNumber, 'emailConfirmed': emailConfirmed, 'healthId': healthId, 'memberId': memberId, 'subscription': subscription }; getTypeName() => "MUser"; TypeContext? context = _ctx; } class GetUsersResponse extends BaseResponse implements IConvertible { List? users; GetUsersResponse({this.users}); GetUsersResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); users = JsonConverters.fromJson(json['users'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'users': JsonConverters.toJson(users,'List',context!) }); getTypeName() => "GetUsersResponse"; TypeContext? context = _ctx; } // @Route("/api/v1/users", "GET") class GetUsers implements IReturn, IConvertible, IGet { GetUsers(); GetUsers.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => GetUsersResponse(); getResponseTypeName() => "GetUsersResponse"; getTypeName() => "GetUsers"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'auth.migrantleap.com', types: { 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'MUser': TypeInfo(TypeOf.Class, create:() => MUser()), 'GetUsersResponse': TypeInfo(TypeOf.Class, create:() => GetUsersResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetUsers': TypeInfo(TypeOf.Class, create:() => GetUsers()), });