/* Options: Date: 2025-12-06 08:01:11 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://business-api.brovs.com //GlobalNamespace: BusinessApi //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ResetPasswordRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BusinessApi; import 'package:servicestack/servicestack.dart'; enum Locale { EnUs, NbNo, } class BusinessUserDto implements IConvertible { int? id; String? email; String? firstName; String? lastName; String? mobilePhone; bool? legalIdentityVerified; Locale? locale; BusinessUserDto({this.id,this.email,this.firstName,this.lastName,this.mobilePhone,this.legalIdentityVerified,this.locale}); BusinessUserDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; email = json['email']; firstName = json['firstName']; lastName = json['lastName']; mobilePhone = json['mobilePhone']; legalIdentityVerified = json['legalIdentityVerified']; locale = JsonConverters.fromJson(json['locale'],'Locale',context!); return this; } Map toJson() => { 'id': id, 'email': email, 'firstName': firstName, 'lastName': lastName, 'mobilePhone': mobilePhone, 'legalIdentityVerified': legalIdentityVerified, 'locale': JsonConverters.toJson(locale,'Locale',context!) }; getTypeName() => "BusinessUserDto"; TypeContext? context = _ctx; } class ResetPasswordResponse implements IConvertible { bool? success; BusinessUserDto? userDto; ResetPasswordResponse({this.success,this.userDto}); ResetPasswordResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { success = json['success']; userDto = JsonConverters.fromJson(json['userDto'],'BusinessUserDto',context!); return this; } Map toJson() => { 'success': success, 'userDto': JsonConverters.toJson(userDto,'BusinessUserDto',context!) }; getTypeName() => "ResetPasswordResponse"; TypeContext? context = _ctx; } // @Route("/login/reset_password", "POST") class ResetPasswordRequest implements IReturn, IPost, IConvertible { String? resetPasswordToken; String? newPassword; String? confirmNewPassword; ResetPasswordRequest({this.resetPasswordToken,this.newPassword,this.confirmNewPassword}); ResetPasswordRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { resetPasswordToken = json['resetPasswordToken']; newPassword = json['newPassword']; confirmNewPassword = json['confirmNewPassword']; return this; } Map toJson() => { 'resetPasswordToken': resetPasswordToken, 'newPassword': newPassword, 'confirmNewPassword': confirmNewPassword }; createResponse() => ResetPasswordResponse(); getResponseTypeName() => "ResetPasswordResponse"; getTypeName() => "ResetPasswordRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BusinessApi', types: { 'Locale': TypeInfo(TypeOf.Enum, enumValues:Locale.values), 'BusinessUserDto': TypeInfo(TypeOf.Class, create:() => BusinessUserDto()), 'ResetPasswordResponse': TypeInfo(TypeOf.Class, create:() => ResetPasswordResponse()), 'ResetPasswordRequest': TypeInfo(TypeOf.Class, create:() => ResetPasswordRequest()), });