/* Options: Date: 2026-04-05 19:47:29 Version: 8.52 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: GetAllocation.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class AlarmCode implements IConvertible { int? eventNumber; int? parameter1; String? vendorEventType; AlarmCode({this.eventNumber,this.parameter1,this.vendorEventType}); AlarmCode.fromJson(Map json) { fromMap(json); } fromMap(Map json) { eventNumber = json['eventNumber']; parameter1 = json['parameter1']; vendorEventType = json['vendorEventType']; return this; } Map toJson() => { 'eventNumber': eventNumber, 'parameter1': parameter1, 'vendorEventType': vendorEventType }; getTypeName() => "AlarmCode"; TypeContext? context = _ctx; } class Alarm implements IConvertible { int? id; int? code; AlarmCode? alarmCode; String? name; int? brakePrg; bool? canTriggerAllocation; String? description; String? remarks; String? resetPrg; bool? isOkAlarm; Map? meta; int? alarmType; String? type; Alarm({this.id,this.code,this.alarmCode,this.name,this.brakePrg,this.canTriggerAllocation,this.description,this.remarks,this.resetPrg,this.isOkAlarm,this.meta,this.alarmType,this.type}); Alarm.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; code = json['code']; alarmCode = JsonConverters.fromJson(json['alarmCode'],'AlarmCode',context!); name = json['name']; brakePrg = json['brakePrg']; canTriggerAllocation = json['canTriggerAllocation']; description = json['description']; remarks = json['remarks']; resetPrg = json['resetPrg']; isOkAlarm = json['isOkAlarm']; meta = JsonConverters.toStringMap(json['meta']); alarmType = json['alarmType']; type = json['type']; return this; } Map toJson() => { 'id': id, 'code': code, 'alarmCode': JsonConverters.toJson(alarmCode,'AlarmCode',context!), 'name': name, 'brakePrg': brakePrg, 'canTriggerAllocation': canTriggerAllocation, 'description': description, 'remarks': remarks, 'resetPrg': resetPrg, 'isOkAlarm': isOkAlarm, 'meta': meta, 'alarmType': alarmType, 'type': type }; getTypeName() => "Alarm"; TypeContext? context = _ctx; } enum CommentType { Turbine, Allocation, Alarm, } enum LabelType { Allocation, Other, Alarm, Case, } class Label implements IConvertible { int? id; String? name; String? color; LabelType? type; Label({this.id,this.name,this.color,this.type}); Label.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; color = json['color']; type = JsonConverters.fromJson(json['type'],'LabelType',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'color': color, 'type': JsonConverters.toJson(type,'LabelType',context!) }; getTypeName() => "Label"; TypeContext? context = _ctx; } class Comment implements IConvertible { int? id; int? turbineId; String? turbineName; DateTime? timeStamp; String? text; String? createdBy; double? createdById; DateTime? lastModified; CommentType? type; bool? External; bool? sticky; int? allocationId; int? alarmLogId; int? alarmId; int? commandId; String? relatedInfo; bool? cleared; List