/* Options: Date: 2025-12-06 05:27:30 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: GetDeviceConfiguration.* //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 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 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 LocationRef implements IConvertible { String? id; String? name; Ref? group; Ref? region; Address? address; RecordDictionary? integrationsData; LocationRef({this.id,this.name,this.group,this.region,this.address,this.integrationsData}); LocationRef.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; group = JsonConverters.fromJson(json['group'],'Ref',context!); region = JsonConverters.fromJson(json['region'],'Ref',context!); address = JsonConverters.fromJson(json['address'],'Address',context!); integrationsData = JsonConverters.fromJson(json['integrationsData'],'RecordDictionary',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'group': JsonConverters.toJson(group,'Ref',context!), 'region': JsonConverters.toJson(region,'Ref',context!), 'address': JsonConverters.toJson(address,'Address',context!), 'integrationsData': JsonConverters.toJson(integrationsData,'RecordDictionary',context!) }; getTypeName() => "LocationRef"; TypeContext? context = _ctx; } class OrganizationRef implements IConvertible { String? id; String? name; Address? address; RecordDictionary? integrationsData; OrganizationRef({this.id,this.name,this.address,this.integrationsData}); OrganizationRef.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; address = JsonConverters.fromJson(json['address'],'Address',context!); integrationsData = JsonConverters.fromJson(json['integrationsData'],'RecordDictionary',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'address': JsonConverters.toJson(address,'Address',context!), 'integrationsData': JsonConverters.toJson(integrationsData,'RecordDictionary',context!) }; getTypeName() => "OrganizationRef"; TypeContext? context = _ctx; } class DeviceConfiguration implements IConvertible { String? id; String? name; bool? isActive; RecordList? productInstances; Ref? timeZone; Ref? currency; Ref? language; LocationRef? location; OrganizationRef? organization; DeviceConfiguration({this.id,this.name,this.isActive,this.productInstances,this.timeZone,this.currency,this.language,this.location,this.organization}); DeviceConfiguration.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; isActive = json['isActive']; productInstances = JsonConverters.fromJson(json['productInstances'],'RecordList',context!); timeZone = JsonConverters.fromJson(json['timeZone'],'Ref',context!); currency = JsonConverters.fromJson(json['currency'],'Ref',context!); language = JsonConverters.fromJson(json['language'],'Ref',context!); location = JsonConverters.fromJson(json['location'],'LocationRef',context!); organization = JsonConverters.fromJson(json['organization'],'OrganizationRef',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'isActive': isActive, 'productInstances': JsonConverters.toJson(productInstances,'RecordList',context!), 'timeZone': JsonConverters.toJson(timeZone,'Ref',context!), 'currency': JsonConverters.toJson(currency,'Ref',context!), 'language': JsonConverters.toJson(language,'Ref',context!), 'location': JsonConverters.toJson(location,'LocationRef',context!), 'organization': JsonConverters.toJson(organization,'OrganizationRef',context!) }; getTypeName() => "DeviceConfiguration"; TypeContext? context = _ctx; } // @Route("/qry/configurations/devices") class GetDeviceConfiguration implements IReturn, IConvertible, IPost { String? id; GetDeviceConfiguration({this.id}); GetDeviceConfiguration.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() => DeviceConfiguration(); getResponseTypeName() => "DeviceConfiguration"; getTypeName() => "GetDeviceConfiguration"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.sbbet.ath.cx', 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()), 'ProductReference': TypeInfo(TypeOf.Class, create:() => ProductReference()), 'ProductInstanceRef': TypeInfo(TypeOf.Class, create:() => ProductInstanceRef()), 'RecordDictionary': TypeInfo(TypeOf.GenericDef,create:() => RecordDictionary()), 'RecordList': TypeInfo(TypeOf.GenericDef,create:() => RecordList()), 'LocationRef': TypeInfo(TypeOf.Class, create:() => LocationRef()), 'OrganizationRef': TypeInfo(TypeOf.Class, create:() => OrganizationRef()), 'DeviceConfiguration': TypeInfo(TypeOf.Class, create:() => DeviceConfiguration()), 'RecordList': TypeInfo(TypeOf.Class, create:() => RecordList()), 'GetDeviceConfiguration': TypeInfo(TypeOf.Class, create:() => GetDeviceConfiguration()), });