/* Options: Date: 2025-12-14 13:13:44 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: UpdatePassword.* //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 UpdatePasswordResponse extends BaseResponse implements IConvertible { UpdatePasswordResponse(); UpdatePasswordResponse.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "UpdatePasswordResponse"; TypeContext? context = _ctx; } // @Route("/api/v1/updatepassword", "POST") class UpdatePassword implements IReturn, IConvertible, IPost { String? email; String? token; String? password; UpdatePassword({this.email,this.token,this.password}); UpdatePassword.fromJson(Map json) { fromMap(json); } fromMap(Map json) { email = json['email']; token = json['token']; password = json['password']; return this; } Map toJson() => { 'email': email, 'token': token, 'password': password }; createResponse() => UpdatePasswordResponse(); getResponseTypeName() => "UpdatePasswordResponse"; getTypeName() => "UpdatePassword"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'auth.migrantleap.com', types: { 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'UpdatePasswordResponse': TypeInfo(TypeOf.Class, create:() => UpdatePasswordResponse()), 'UpdatePassword': TypeInfo(TypeOf.Class, create:() => UpdatePassword()), });