/* Options: Date: 2025-09-05 04:41:30 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://foundrystage-api-app.azurewebsites.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AddTelemetryRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ITenantedRequest { String? organisationId; } abstract class PutPatchOperationUnTenanted implements IPatch, IPut { PutPatchOperationUnTenanted(); PutPatchOperationUnTenanted.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "PutPatchOperationUnTenanted<$TResponse>"; TypeContext? context = _ctx; } abstract class PutPatchOperationTenanted extends PutPatchOperationUnTenanted implements ITenantedRequest { String? organisationId; PutPatchOperationTenanted({this.organisationId}); PutPatchOperationTenanted.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); organisationId = json['organisationId']; return this; } Map toJson() => super.toJson()..addAll({ 'organisationId': organisationId }); getTypeName() => "PutPatchOperationTenanted<$TResponse>"; TypeContext? context = _ctx; } class Telemetry implements IIdentifiableResource, IConvertible { String? type; String? value; DateTime? observedAt; String? id; Telemetry({this.type,this.value,this.observedAt,this.id}); Telemetry.fromJson(Map json) { fromMap(json); } fromMap(Map json) { type = json['type']; value = json['value']; observedAt = JsonConverters.fromJson(json['observedAt'],'DateTime',context!); id = json['id']; return this; } Map toJson() => { 'type': type, 'value': value, 'observedAt': JsonConverters.toJson(observedAt,'DateTime',context!), 'id': id }; getTypeName() => "Telemetry"; TypeContext? context = _ctx; } abstract class IIdentifiableResource { String? id; } class AddTelemetryResponse implements IConvertible { ResponseStatus? responseStatus; AddTelemetryResponse({this.responseStatus}); AddTelemetryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "AddTelemetryResponse"; TypeContext? context = _ctx; } // @Route("/machines/{MachineId}/telemetries", "POST") class AddTelemetryRequest extends PutPatchOperationTenanted implements IReturn, IConvertible { String? machineId; List? telemetries; AddTelemetryRequest({this.machineId,this.telemetries}); AddTelemetryRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); machineId = json['machineId']; telemetries = JsonConverters.fromJson(json['telemetries'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'machineId': machineId, 'telemetries': JsonConverters.toJson(telemetries,'List',context!) }); createResponse() => AddTelemetryResponse(); getResponseTypeName() => "AddTelemetryResponse"; getTypeName() => "AddTelemetryRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'foundrystage_api_app.azurewebsites.net', types: { 'ITenantedRequest': TypeInfo(TypeOf.Interface), 'PutPatchOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'PutPatchOperationTenanted': TypeInfo(TypeOf.AbstractClass), 'Telemetry': TypeInfo(TypeOf.Class, create:() => Telemetry()), 'IIdentifiableResource': TypeInfo(TypeOf.Interface), 'AddTelemetryResponse': TypeInfo(TypeOf.Class, create:() => AddTelemetryResponse()), 'AddTelemetryRequest': TypeInfo(TypeOf.Class, create:() => AddTelemetryRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });