/* Options: Date: 2026-01-30 03:34:21 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://auth-sandbox.migrantleap.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PreLogin.* //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 PreLoginResponse extends BaseResponse implements IConvertible { PreLoginResponse(); PreLoginResponse.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "PreLoginResponse"; TypeContext? context = _ctx; } // @Route("/api/v1/prelogin", "POST") // @Route("/auth/v1/prelogin", "POST") class PreLogin implements IReturn, IConvertible, IPost { String? email; String? password; PreLogin({this.email,this.password}); PreLogin.fromJson(Map json) { fromMap(json); } fromMap(Map json) { email = json['email']; password = json['password']; return this; } Map toJson() => { 'email': email, 'password': password }; createResponse() => PreLoginResponse(); getResponseTypeName() => "PreLoginResponse"; getTypeName() => "PreLogin"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'auth_sandbox.migrantleap.com', types: { 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'PreLoginResponse': TypeInfo(TypeOf.Class, create:() => PreLoginResponse()), 'PreLogin': TypeInfo(TypeOf.Class, create:() => PreLogin()), });