/* Options: Date: 2026-10-20 16:33:55 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://imm-con-gmbh-servdesk.eras-online.de //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetDeviceConsumption.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; // @DataContract class DeviceConsumption implements IConvertible { // @DataMember String? guid; // @DataMember double? deviceReading; // @DataMember DateTime? deviceReadingDate; // @DataMember DeviceReadingKind? deviceReadingKind; // @DataMember DateTime? changeDate; // @DataMember String? note; // @DataMember String? ampouleColour; // @DataMember String? deviceGuid; DeviceConsumption({this.guid,this.deviceReading,this.deviceReadingDate,this.deviceReadingKind,this.changeDate,this.note,this.ampouleColour,this.deviceGuid}); DeviceConsumption.fromJson(Map json) { fromMap(json); } fromMap(Map json) { guid = json['guid']; deviceReading = JsonConverters.toDouble(json['deviceReading']); deviceReadingDate = JsonConverters.fromJson(json['deviceReadingDate'],'DateTime',context!); deviceReadingKind = JsonConverters.fromJson(json['deviceReadingKind'],'DeviceReadingKind',context!); changeDate = JsonConverters.fromJson(json['changeDate'],'DateTime',context!); note = json['note']; ampouleColour = json['ampouleColour']; deviceGuid = json['deviceGuid']; return this; } Map toJson() => { 'guid': guid, 'deviceReading': deviceReading, 'deviceReadingDate': JsonConverters.toJson(deviceReadingDate,'DateTime',context!), 'deviceReadingKind': JsonConverters.toJson(deviceReadingKind,'DeviceReadingKind',context!), 'changeDate': JsonConverters.toJson(changeDate,'DateTime',context!), 'note': note, 'ampouleColour': ampouleColour, 'deviceGuid': deviceGuid }; getTypeName() => "DeviceConsumption"; TypeContext? context = _ctx; } // @DataContract class DeviceConsumption implements IConvertible { // @DataMember(Name="Guid") String? Guid; // @DataMember(Name="Ablesung") double? Ablesung; // @DataMember(Name="Ablesedatum") DateTime? Ablesedatum; // @DataMember(Name="Ableseart") String? Ableseart; // @DataMember(Name="Aenderungsdatum") DateTime? Aenderungsdatum; // @DataMember(Name="Anmerkung") String? Anmerkung; // @DataMember(Name="Ampullenfarbe") String? Ampullenfarbe; // @DataMember(Name="DeviceGuid") String? DeviceGuid; DeviceConsumption({this.Guid,this.Ablesung,this.Ablesedatum,this.Ableseart,this.Aenderungsdatum,this.Anmerkung,this.Ampullenfarbe,this.DeviceGuid}); DeviceConsumption.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Guid = json['guid']; Ablesung = JsonConverters.toDouble(json['deviceReading']); Ablesedatum = JsonConverters.fromJson(json['deviceReadingDate'],'DateTime',context!); Ableseart = json['deviceReadingKind']; Aenderungsdatum = JsonConverters.fromJson(json['changeDate'],'DateTime',context!); Anmerkung = json['note']; Ampullenfarbe = json['ampouleColour']; DeviceGuid = json['deviceGuid']; return this; } Map toJson() => { 'guid': Guid, 'ablesung': Ablesung, 'ablesedatum': JsonConverters.toJson(Ablesedatum,'DateTime',context!), 'ableseart': Ableseart, 'aenderungsdatum': JsonConverters.toJson(Aenderungsdatum,'DateTime',context!), 'anmerkung': Anmerkung, 'ampullenfarbe': Ampullenfarbe, 'deviceGuid': DeviceGuid }; getTypeName() => "DeviceConsumption"; TypeContext? context = _ctx; } class GetDeviceConsumptionResponse implements IConvertible { DeviceConsumption? deviceConsumption; ResponseStatus? responseStatus; GetDeviceConsumptionResponse({this.deviceConsumption,this.responseStatus}); GetDeviceConsumptionResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { deviceConsumption = JsonConverters.fromJson(json['deviceConsumption'],'DeviceConsumption',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'deviceConsumption': JsonConverters.toJson(deviceConsumption,'DeviceConsumption',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "GetDeviceConsumptionResponse"; TypeContext? context = _ctx; } // @Route("/api/v1/deviceconsumptions/{Guid}", "GET") class GetDeviceConsumption implements IReturn, IHasBearerToken, IConvertible, IGet { // @ApiMember(IsRequired=true, ParameterType="query") String? bearerToken; // @ApiMember(IsRequired=true, ParameterType="path") String? guid; GetDeviceConsumption({this.bearerToken,this.guid}); GetDeviceConsumption.fromJson(Map json) { fromMap(json); } fromMap(Map json) { bearerToken = json['bearerToken']; guid = json['guid']; return this; } Map toJson() => { 'bearerToken': bearerToken, 'guid': guid }; createResponse() => GetDeviceConsumptionResponse(); getResponseTypeName() => "GetDeviceConsumptionResponse"; getTypeName() => "GetDeviceConsumption"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'imm_con_gmbh_servdesk.eras_online.de', types: { 'DeviceConsumption': TypeInfo(TypeOf.Class, create:() => DeviceConsumption()), 'DeviceReadingKind': TypeInfo(TypeOf.Class, create:() => DeviceReadingKind()), 'GetDeviceConsumptionResponse': TypeInfo(TypeOf.Class, create:() => GetDeviceConsumptionResponse()), 'GetDeviceConsumption': TypeInfo(TypeOf.Class, create:() => GetDeviceConsumption()), });