/* Options: Date: 2025-12-06 07:05:07 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: DeleteProfileRequest.* //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 DeleteProfileResponse implements IConvertible { BusinessUserDto? userThatWasDeleted; DeleteProfileResponse({this.userThatWasDeleted}); DeleteProfileResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { userThatWasDeleted = JsonConverters.fromJson(json['userThatWasDeleted'],'BusinessUserDto',context!); return this; } Map toJson() => { 'userThatWasDeleted': JsonConverters.toJson(userThatWasDeleted,'BusinessUserDto',context!) }; getTypeName() => "DeleteProfileResponse"; TypeContext? context = _ctx; } // @Route("/profile/delete", "POST") class DeleteProfileRequest implements IReturn, IPost, IConvertible { bool? userHasConfirmed; DeleteProfileRequest({this.userHasConfirmed}); DeleteProfileRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { userHasConfirmed = json['userHasConfirmed']; return this; } Map toJson() => { 'userHasConfirmed': userHasConfirmed }; createResponse() => DeleteProfileResponse(); getResponseTypeName() => "DeleteProfileResponse"; getTypeName() => "DeleteProfileRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BusinessApi', types: { 'Locale': TypeInfo(TypeOf.Enum, enumValues:Locale.values), 'BusinessUserDto': TypeInfo(TypeOf.Class, create:() => BusinessUserDto()), 'DeleteProfileResponse': TypeInfo(TypeOf.Class, create:() => DeleteProfileResponse()), 'DeleteProfileRequest': TypeInfo(TypeOf.Class, create:() => DeleteProfileRequest()), });