/* Options: Date: 2025-12-14 13:46:27 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: CompleteProfile.* //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 CompleteProfileResponse extends BaseResponse implements IConvertible { CompleteProfileResponse(); CompleteProfileResponse.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "CompleteProfileResponse"; TypeContext? context = _ctx; } // @Route("/api/v1/completeprofile", "POST") class CompleteProfile implements IReturn, IConvertible, IPost { String? email; String? firstName; String? lastName; String? country; String? language; DateTime? birthDate; String? address; String? address2; String? city; String? state; String? zipCode; String? phoneNumber; String? phoneValidationToken; bool? updateHealthProfile; String? password; CompleteProfile({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.phoneValidationToken,this.updateHealthProfile,this.password}); CompleteProfile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { email = json['email']; firstName = json['firstName']; lastName = json['lastName']; country = json['country']; language = json['language']; birthDate = JsonConverters.fromJson(json['birthDate'],'DateTime',context!); address = json['address']; address2 = json['address2']; city = json['city']; state = json['state']; zipCode = json['zipCode']; phoneNumber = json['phoneNumber']; phoneValidationToken = json['phoneValidationToken']; updateHealthProfile = json['updateHealthProfile']; password = json['password']; return this; } Map toJson() => { 'email': email, 'firstName': firstName, 'lastName': lastName, 'country': country, 'language': language, 'birthDate': JsonConverters.toJson(birthDate,'DateTime',context!), 'address': address, 'address2': address2, 'city': city, 'state': state, 'zipCode': zipCode, 'phoneNumber': phoneNumber, 'phoneValidationToken': phoneValidationToken, 'updateHealthProfile': updateHealthProfile, 'password': password }; createResponse() => CompleteProfileResponse(); getResponseTypeName() => "CompleteProfileResponse"; getTypeName() => "CompleteProfile"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'auth.migrantleap.com', types: { 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'CompleteProfileResponse': TypeInfo(TypeOf.Class, create:() => CompleteProfileResponse()), 'CompleteProfile': TypeInfo(TypeOf.Class, create:() => CompleteProfile()), });