/* Options: Date: 2025-08-02 23:48:12 Version: 8.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://monitoring.ox2.com/BazeField.Services/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: DeviceInfoGetRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class DeviceInfoEntity implements IConvertible { int? id; String? description; String? name; int? loadOrder; String? nodeId; String? nodeName; int? protocolId; String? protocolName; String? connectionString; DeviceInfoEntity({this.id,this.description,this.name,this.loadOrder,this.nodeId,this.nodeName,this.protocolId,this.protocolName,this.connectionString}); DeviceInfoEntity.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; description = json['description']; name = json['name']; loadOrder = json['loadOrder']; nodeId = json['nodeId']; nodeName = json['nodeName']; protocolId = json['protocolId']; protocolName = json['protocolName']; connectionString = json['connectionString']; return this; } Map toJson() => { 'id': id, 'description': description, 'name': name, 'loadOrder': loadOrder, 'nodeId': nodeId, 'nodeName': nodeName, 'protocolId': protocolId, 'protocolName': protocolName, 'connectionString': connectionString }; getTypeName() => "DeviceInfoEntity"; TypeContext? context = _ctx; } class DeviceInfoGetResponse implements IConvertible { Map? devices; DeviceInfoGetResponse({this.devices}); DeviceInfoGetResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { devices = JsonConverters.fromJson(json['devices'],'Map',context!); return this; } Map toJson() => { 'devices': JsonConverters.toJson(devices,'Map',context!) }; getTypeName() => "DeviceInfoGetResponse"; TypeContext? context = _ctx; } // @Route("/configuration/objects/{ObjectIds}/devices", "GET, POST") class DeviceInfoGetRequest implements IReturn, IConvertible, IGet { List? objectIds; DeviceInfoGetRequest({this.objectIds}); DeviceInfoGetRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { objectIds = JsonConverters.fromJson(json['objectIds'],'List',context!); return this; } Map toJson() => { 'objectIds': JsonConverters.toJson(objectIds,'List',context!) }; createResponse() => DeviceInfoGetResponse(); getResponseTypeName() => "DeviceInfoGetResponse"; getTypeName() => "DeviceInfoGetRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'monitoring.ox2.com', types: { 'DeviceInfoEntity': TypeInfo(TypeOf.Class, create:() => DeviceInfoEntity()), 'DeviceInfoGetResponse': TypeInfo(TypeOf.Class, create:() => DeviceInfoGetResponse()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'DeviceInfoGetRequest': TypeInfo(TypeOf.Class, create:() => DeviceInfoGetRequest()), });