/* Options: Date: 2025-12-06 05:23:44 Version: 8.70 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.sbbet.ath.cx //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: OpenLocation.* //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 RefEx extends Ref implements IConvertible { RecordDictionary? data; RefEx({this.data}); RefEx.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); data = JsonConverters.fromJson(json['data'],'RecordDictionary',context!); return this; } Map toJson() => super.toJson()..addAll({ 'data': JsonConverters.toJson(data,'RecordDictionary',context!) }); getTypeName() => "RefEx"; 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 Device implements IConvertible { String? id; String? name; bool? isActive; DeviceType? type; RecordDictionary? integrationsData; Device({this.id,this.name,this.isActive,this.type,this.integrationsData}); Device.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; isActive = json['isActive']; type = JsonConverters.fromJson(json['type'],'DeviceType',context!); integrationsData = JsonConverters.fromJson(json['integrationsData'],'RecordDictionary',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'isActive': isActive, 'type': JsonConverters.toJson(type,'DeviceType',context!), 'integrationsData': JsonConverters.toJson(integrationsData,'RecordDictionary',context!) }; getTypeName() => "Device"; TypeContext? context = _ctx; } class ProductReference implements IConvertible { String? id; String? value; String? category; Ref? productProvider; ProductReference({this.id,this.value,this.category,this.productProvider}); ProductReference.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; value = json['value']; category = json['category']; productProvider = JsonConverters.fromJson(json['productProvider'],'Ref',context!); return this; } Map toJson() => { 'id': id, 'value': value, 'category': category, 'productProvider': JsonConverters.toJson(productProvider,'Ref',context!) }; getTypeName() => "ProductReference"; TypeContext? context = _ctx; } class ProductInstanceRef implements IConvertible { String? id; String? name; String? title; ProductReference? product; ProductInstanceRef({this.id,this.name,this.title,this.product}); ProductInstanceRef.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; title = json['title']; product = JsonConverters.fromJson(json['product'],'ProductReference',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'title': title, 'product': JsonConverters.toJson(product,'ProductReference',context!) }; getTypeName() => "ProductInstanceRef"; TypeContext? context = _ctx; } class Locale implements IConvertible { Ref? timeZone; Ref? currency; Ref? language; Locale({this.timeZone,this.currency,this.language}); Locale.fromJson(Map json) { fromMap(json); } fromMap(Map json) { timeZone = JsonConverters.fromJson(json['timeZone'],'Ref',context!); currency = JsonConverters.fromJson(json['currency'],'Ref',context!); language = JsonConverters.fromJson(json['language'],'Ref',context!); return this; } Map toJson() => { 'timeZone': JsonConverters.toJson(timeZone,'Ref',context!), 'currency': JsonConverters.toJson(currency,'Ref',context!), 'language': JsonConverters.toJson(language,'Ref',context!) }; getTypeName() => "Locale"; 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 Device implements IConvertible { String? id; String? name; bool? isActive; DeviceType? type; RefEx? location; Ref? locationGroup; RefEx? organization; RecordDictionary? integrationsData; Device({this.id,this.name,this.isActive,this.type,this.location,this.locationGroup,this.organization,this.integrationsData}); Device.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; isActive = json['isActive']; type = JsonConverters.fromJson(json['type'],'DeviceType',context!); location = JsonConverters.fromJson(json['location'],'RefEx',context!); locationGroup = JsonConverters.fromJson(json['locationGroup'],'Ref',context!); organization = JsonConverters.fromJson(json['organization'],'RefEx',context!); integrationsData = JsonConverters.fromJson(json['integrationsData'],'RecordDictionary',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'isActive': isActive, 'type': JsonConverters.toJson(type,'DeviceType',context!), 'location': JsonConverters.toJson(location,'RefEx',context!), 'locationGroup': JsonConverters.toJson(locationGroup,'Ref',context!), 'organization': JsonConverters.toJson(organization,'RefEx',context!), 'integrationsData': JsonConverters.toJson(integrationsData,'RecordDictionary',context!) }; getTypeName() => "Device"; TypeContext? context = _ctx; } // @Route("/cmd/locations", "POST") class OpenLocation implements IReturn, IConvertible, IPost { String? id; String? name; RefEx? organization; Ref? region; Ref? group; Address? address; List? devices; List? productInstances; Locale? locale; Map? integrationsData; OpenLocation({this.id,this.name,this.organization,this.region,this.group,this.address,this.devices,this.productInstances,this.locale,this.integrationsData}); OpenLocation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; organization = JsonConverters.fromJson(json['organization'],'RefEx',context!); region = JsonConverters.fromJson(json['region'],'Ref',context!); group = JsonConverters.fromJson(json['group'],'Ref',context!); address = JsonConverters.fromJson(json['address'],'Address',context!); devices = JsonConverters.fromJson(json['devices'],'List',context!); productInstances = JsonConverters.fromJson(json['productInstances'],'List',context!); locale = JsonConverters.fromJson(json['locale'],'Locale',context!); integrationsData = JsonConverters.toStringMap(json['integrationsData']); return this; } Map toJson() => { 'id': id, 'name': name, 'organization': JsonConverters.toJson(organization,'RefEx',context!), 'region': JsonConverters.toJson(region,'Ref',context!), 'group': JsonConverters.toJson(group,'Ref',context!), 'address': JsonConverters.toJson(address,'Address',context!), 'devices': JsonConverters.toJson(devices,'List',context!), 'productInstances': JsonConverters.toJson(productInstances,'List',context!), 'locale': JsonConverters.toJson(locale,'Locale',context!), 'integrationsData': integrationsData }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "OpenLocation"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.sbbet.ath.cx', types: { 'Ref': TypeInfo(TypeOf.Class, create:() => Ref()), 'RefEx': TypeInfo(TypeOf.Class, create:() => RefEx()), 'RecordDictionary': TypeInfo(TypeOf.Class, create:() => RecordDictionary()), 'GPSCoordinates': TypeInfo(TypeOf.Class, create:() => GPSCoordinates()), 'Address': TypeInfo(TypeOf.Class, create:() => Address()), 'Device': TypeInfo(TypeOf.Class, create:() => Device()), 'DeviceType': TypeInfo(TypeOf.Class, create:() => DeviceType()), 'ProductReference': TypeInfo(TypeOf.Class, create:() => ProductReference()), 'ProductInstanceRef': TypeInfo(TypeOf.Class, create:() => ProductInstanceRef()), 'Locale': TypeInfo(TypeOf.Class, create:() => Locale()), 'RecordDictionary': TypeInfo(TypeOf.GenericDef,create:() => RecordDictionary()), 'OpenLocation': TypeInfo(TypeOf.Class, create:() => OpenLocation()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), });