/* Options: Date: 2026-01-27 18:43:00 Version: 8.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://buildmax.org //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: JsonRegisterClientRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class JsonDto implements IConvertible { JsonDto(); JsonDto.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "JsonDto"; TypeContext? context = _ctx; } class JsonRequestDto extends JsonDto implements IConvertible { String? ClientCode; String? ClientRegistrationCode; String? Token; JsonRequestDto({this.ClientCode,this.ClientRegistrationCode,this.Token}); JsonRequestDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ClientCode = json['ClientCode']; ClientRegistrationCode = json['ClientRegistrationCode']; Token = json['Token']; return this; } Map toJson() => super.toJson()..addAll({ 'ClientCode': ClientCode, 'ClientRegistrationCode': ClientRegistrationCode, 'Token': Token }); getTypeName() => "JsonRequestDto"; TypeContext? context = _ctx; } enum RegistrationResult { Success, ClientCodeNotFound, ClientAlreadyRegistered, Error, } class JsonRegisterClientResponse extends JsonDto implements IConvertible { RegistrationResult? Result; String? ErrorMessage; String? ClientRegistrationCode; JsonRegisterClientResponse({this.Result,this.ErrorMessage,this.ClientRegistrationCode}); JsonRegisterClientResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Result = JsonConverters.fromJson(json['Result'],'RegistrationResult',context!); ErrorMessage = json['ErrorMessage']; ClientRegistrationCode = json['ClientRegistrationCode']; return this; } Map toJson() => super.toJson()..addAll({ 'Result': JsonConverters.toJson(Result,'RegistrationResult',context!), 'ErrorMessage': ErrorMessage, 'ClientRegistrationCode': ClientRegistrationCode }); getTypeName() => "JsonRegisterClientResponse"; TypeContext? context = _ctx; } class JsonRegisterClientRequest extends JsonRequestDto implements IReturn, IConvertible, IPost { JsonRegisterClientRequest(); JsonRegisterClientRequest.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => JsonRegisterClientResponse(); getResponseTypeName() => "JsonRegisterClientResponse"; getTypeName() => "JsonRegisterClientRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'buildmax.org', types: { 'JsonDto': TypeInfo(TypeOf.Class, create:() => JsonDto()), 'JsonRequestDto': TypeInfo(TypeOf.Class, create:() => JsonRequestDto()), 'RegistrationResult': TypeInfo(TypeOf.Enum, enumValues:RegistrationResult.values), 'JsonRegisterClientResponse': TypeInfo(TypeOf.Class, create:() => JsonRegisterClientResponse()), 'JsonRegisterClientRequest': TypeInfo(TypeOf.Class, create:() => JsonRegisterClientRequest()), });