/* Options: Date: 2025-12-14 13:15:32 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: UpdateHealthProfile.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class HealthProfile implements IConvertible { String? healthId; String? firstName; String? lastName; String? email; String? birthDate; String? address; String? address2; String? state; String? city; String? zipCode; String? phone; HealthProfile({this.healthId,this.firstName,this.lastName,this.email,this.birthDate,this.address,this.address2,this.state,this.city,this.zipCode,this.phone}); HealthProfile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { healthId = json['healthId']; firstName = json['firstName']; lastName = json['lastName']; email = json['email']; birthDate = json['birthDate']; address = json['address']; address2 = json['address2']; state = json['state']; city = json['city']; zipCode = json['zipCode']; phone = json['phone']; return this; } Map toJson() => { 'healthId': healthId, 'firstName': firstName, 'lastName': lastName, 'email': email, 'birthDate': birthDate, 'address': address, 'address2': address2, 'state': state, 'city': city, 'zipCode': zipCode, 'phone': phone }; getTypeName() => "HealthProfile"; TypeContext? context = _ctx; } 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 UpdateHealthProfileResponse extends BaseResponse implements IConvertible { UpdateHealthProfileResponse(); UpdateHealthProfileResponse.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "UpdateHealthProfileResponse"; TypeContext? context = _ctx; } // @Route("/api/v1/completehealthprofile", "POST") class UpdateHealthProfile implements IReturn, IConvertible, IPost { HealthProfile? profile; String? password; UpdateHealthProfile({this.profile,this.password}); UpdateHealthProfile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { profile = JsonConverters.fromJson(json['profile'],'HealthProfile',context!); password = json['password']; return this; } Map toJson() => { 'profile': JsonConverters.toJson(profile,'HealthProfile',context!), 'password': password }; createResponse() => UpdateHealthProfileResponse(); getResponseTypeName() => "UpdateHealthProfileResponse"; getTypeName() => "UpdateHealthProfile"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'auth.migrantleap.com', types: { 'HealthProfile': TypeInfo(TypeOf.Class, create:() => HealthProfile()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'UpdateHealthProfileResponse': TypeInfo(TypeOf.Class, create:() => UpdateHealthProfileResponse()), 'UpdateHealthProfile': TypeInfo(TypeOf.Class, create:() => UpdateHealthProfile()), });