/* Options: Date: 2025-12-16 00:28:10 Version: 8.70 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.sbbet.webhop.biz //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: RegisterUserAccount.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Ref implements IConvertible { String? id; String? val; Ref({this.id,this.val}); Ref.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; val = json['val']; return this; } Map toJson() => { 'id': id, 'val': val }; getTypeName() => "Ref"; TypeContext? context = _ctx; } class GPSCoordinates implements IConvertible { double? lat; double? lng; GPSCoordinates({this.lat,this.lng}); GPSCoordinates.fromJson(Map json) { fromMap(json); } fromMap(Map json) { lat = JsonConverters.toDouble(json['lat']); lng = JsonConverters.toDouble(json['lng']); return this; } Map toJson() => { 'lat': lat, 'lng': lng }; getTypeName() => "GPSCoordinates"; TypeContext? context = _ctx; } class Address implements IConvertible { String? street; String? city; String? state; String? postalCode; Ref? country; GPSCoordinates? gps; RecordDictionary? data; Address({this.street,this.city,this.state,this.postalCode,this.country,this.gps,this.data}); Address.fromJson(Map json) { fromMap(json); } fromMap(Map json) { street = json['street']; city = json['city']; state = json['state']; postalCode = json['postalCode']; country = JsonConverters.fromJson(json['country'],'Ref',context!); gps = JsonConverters.fromJson(json['gps'],'GPSCoordinates',context!); data = JsonConverters.fromJson(json['data'],'RecordDictionary',context!); return this; } Map toJson() => { 'street': street, 'city': city, 'state': state, 'postalCode': postalCode, 'country': JsonConverters.toJson(country,'Ref',context!), 'gps': JsonConverters.toJson(gps,'GPSCoordinates',context!), 'data': JsonConverters.toJson(data,'RecordDictionary',context!) }; getTypeName() => "Address"; TypeContext? context = _ctx; } class RecordDictionary extends Map implements IConvertible { RecordDictionary(); RecordDictionary.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "RecordDictionary<$TKey,$TVal>"; TypeContext? context = _ctx; } class RecordList extends ListBase implements IConvertible { final List l = []; set length(int newLength) { l.length = newLength; } int get length => l.length; T operator [](int index) => l[index]; void operator []=(int index, T value) { l[index] = value; } RecordList(); RecordList.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "RecordList<$T>"; TypeContext? context = _ctx; } class LoginCredentials implements IConvertible { String? username; String? password; LoginCredentials({this.username,this.password}); LoginCredentials.fromJson(Map json) { fromMap(json); } fromMap(Map json) { username = json['username']; password = json['password']; return this; } Map toJson() => { 'username': username, 'password': password }; getTypeName() => "LoginCredentials"; TypeContext? context = _ctx; } class Name implements IConvertible { String? first; String? last; String? full; Name({this.first,this.last,this.full}); Name.fromJson(Map json) { fromMap(json); } fromMap(Map json) { first = json['first']; last = json['last']; full = json['full']; return this; } Map toJson() => { 'first': first, 'last': last, 'full': full }; getTypeName() => "Name"; TypeContext? context = _ctx; } class ContactInfo implements IConvertible { String? phone; String? email; ContactInfo({this.phone,this.email}); ContactInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { phone = json['phone']; email = json['email']; return this; } Map toJson() => { 'phone': phone, 'email': email }; getTypeName() => "ContactInfo"; TypeContext? context = _ctx; } class Person implements IConvertible { Name? name; Address? address; DateTime? dateOfBirth; ContactInfo? contactInfo; Person({this.name,this.address,this.dateOfBirth,this.contactInfo}); Person.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = JsonConverters.fromJson(json['name'],'Name',context!); address = JsonConverters.fromJson(json['address'],'Address',context!); dateOfBirth = JsonConverters.fromJson(json['dateOfBirth'],'DateTime',context!); contactInfo = JsonConverters.fromJson(json['contactInfo'],'ContactInfo',context!); return this; } Map toJson() => { 'name': JsonConverters.toJson(name,'Name',context!), 'address': JsonConverters.toJson(address,'Address',context!), 'dateOfBirth': JsonConverters.toJson(dateOfBirth,'DateTime',context!), 'contactInfo': JsonConverters.toJson(contactInfo,'ContactInfo',context!) }; getTypeName() => "Person"; TypeContext? context = _ctx; } class AvatarImage implements IConvertible { String? base64; String? tag; AvatarImage({this.base64,this.tag}); AvatarImage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { base64 = json['base64']; tag = json['tag']; return this; } Map toJson() => { 'base64': base64, 'tag': tag }; getTypeName() => "AvatarImage"; TypeContext? context = _ctx; } class NewUserDTO implements IConvertible { String? externalUserId; LoginCredentials? credentials; Person? person; RecordList? roles; AvatarImage? avatar; NewUserDTO({this.externalUserId,this.credentials,this.person,this.roles,this.avatar}); NewUserDTO.fromJson(Map json) { fromMap(json); } fromMap(Map json) { externalUserId = json['externalUserId']; credentials = JsonConverters.fromJson(json['credentials'],'LoginCredentials',context!); person = JsonConverters.fromJson(json['person'],'Person',context!); roles = JsonConverters.fromJson(json['roles'],'RecordList',context!); avatar = JsonConverters.fromJson(json['avatar'],'AvatarImage',context!); return this; } Map toJson() => { 'externalUserId': externalUserId, 'credentials': JsonConverters.toJson(credentials,'LoginCredentials',context!), 'person': JsonConverters.toJson(person,'Person',context!), 'roles': JsonConverters.toJson(roles,'RecordList',context!), 'avatar': JsonConverters.toJson(avatar,'AvatarImage',context!) }; getTypeName() => "NewUserDTO"; TypeContext? context = _ctx; } // @Route("/cmd/users/register", "POST") class RegisterUserAccount implements IReturn, IConvertible, IPost { String? id; NewUserDTO? newUserDTO; RegisterUserAccount({this.id,this.newUserDTO}); RegisterUserAccount.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; newUserDTO = JsonConverters.fromJson(json['newUserDTO'],'NewUserDTO',context!); return this; } Map toJson() => { 'id': id, 'newUserDTO': JsonConverters.toJson(newUserDTO,'NewUserDTO',context!) }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "RegisterUserAccount"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.sbbet.webhop.biz', types: { 'Ref': TypeInfo(TypeOf.Class, create:() => Ref()), 'GPSCoordinates': TypeInfo(TypeOf.Class, create:() => GPSCoordinates()), 'Address': TypeInfo(TypeOf.Class, create:() => Address()), 'RecordDictionary': TypeInfo(TypeOf.Class, create:() => RecordDictionary()), 'RecordDictionary': TypeInfo(TypeOf.GenericDef,create:() => RecordDictionary()), 'RecordList': TypeInfo(TypeOf.GenericDef,create:() => RecordList()), 'LoginCredentials': TypeInfo(TypeOf.Class, create:() => LoginCredentials()), 'Name': TypeInfo(TypeOf.Class, create:() => Name()), 'ContactInfo': TypeInfo(TypeOf.Class, create:() => ContactInfo()), 'Person': TypeInfo(TypeOf.Class, create:() => Person()), 'AvatarImage': TypeInfo(TypeOf.Class, create:() => AvatarImage()), 'NewUserDTO': TypeInfo(TypeOf.Class, create:() => NewUserDTO()), 'RecordList': TypeInfo(TypeOf.Class, create:() => RecordList()), 'RegisterUserAccount': TypeInfo(TypeOf.Class, create:() => RegisterUserAccount()), });