/* Options: Date: 2025-09-05 04:41:31 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: GetRecentTelemetryRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class GetOperationUnTenanted implements IHasGetOptions, IGet { String? embed; GetOperationUnTenanted({this.embed}); GetOperationUnTenanted.fromJson(Map json) { fromMap(json); } fromMap(Map json) { embed = json['embed']; return this; } Map toJson() => { 'embed': embed }; getTypeName() => "GetOperationUnTenanted<$TResponse>"; TypeContext? context = _ctx; } abstract class IHasGetOptions { String? embed; } abstract class ITenantedRequest { String? organisationId; } abstract class GetOperationTenanted extends GetOperationUnTenanted implements ITenantedRequest { String? organisationId; GetOperationTenanted({this.organisationId}); GetOperationTenanted.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); organisationId = json['organisationId']; return this; } Map toJson() => super.toJson()..addAll({ 'organisationId': organisationId }); getTypeName() => "GetOperationTenanted<$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 GetRecentTelemetryResponse implements IConvertible { Telemetry? telemetry; ResponseStatus? responseStatus; GetRecentTelemetryResponse({this.telemetry,this.responseStatus}); GetRecentTelemetryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { telemetry = JsonConverters.fromJson(json['telemetry'],'Telemetry',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'telemetry': JsonConverters.toJson(telemetry,'Telemetry',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "GetRecentTelemetryResponse"; TypeContext? context = _ctx; } // @Route("/machines/{Id}/telemetries/recent", "GET") class GetRecentTelemetryRequest extends GetOperationTenanted implements IReturn, IConvertible { String? id; String? targetTelemetryType; GetRecentTelemetryRequest({this.id,this.targetTelemetryType}); GetRecentTelemetryRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; targetTelemetryType = json['targetTelemetryType']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'targetTelemetryType': targetTelemetryType }); createResponse() => GetRecentTelemetryResponse(); getResponseTypeName() => "GetRecentTelemetryResponse"; getTypeName() => "GetRecentTelemetryRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'foundrystage_api_app.azurewebsites.net', types: { 'GetOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'IHasGetOptions': TypeInfo(TypeOf.Interface), 'ITenantedRequest': TypeInfo(TypeOf.Interface), 'GetOperationTenanted': TypeInfo(TypeOf.AbstractClass), 'Telemetry': TypeInfo(TypeOf.Class, create:() => Telemetry()), 'IIdentifiableResource': TypeInfo(TypeOf.Interface), 'GetRecentTelemetryResponse': TypeInfo(TypeOf.Class, create:() => GetRecentTelemetryResponse()), 'GetRecentTelemetryRequest': TypeInfo(TypeOf.Class, create:() => GetRecentTelemetryRequest()), });