/* Options: Date: 2025-12-06 05:23:41 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: AddLocationDevice.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; 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 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/devices/add", "POST") class AddLocationDevice implements IReturn, IConvertible, IPost { String? id; Device? device; AddLocationDevice({this.id,this.device}); AddLocationDevice.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; device = JsonConverters.fromJson(json['device'],'Device',context!); return this; } Map toJson() => { 'id': id, 'device': JsonConverters.toJson(device,'Device',context!) }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "AddLocationDevice"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.sbbet.ath.cx', types: { 'Device': TypeInfo(TypeOf.Class, create:() => Device()), 'DeviceType': TypeInfo(TypeOf.Class, create:() => DeviceType()), 'RecordDictionary': TypeInfo(TypeOf.Class, create:() => RecordDictionary()), 'RefEx': TypeInfo(TypeOf.Class, create:() => RefEx()), 'Ref': TypeInfo(TypeOf.Class, create:() => Ref()), 'AddLocationDevice': TypeInfo(TypeOf.Class, create:() => AddLocationDevice()), });