/* Options: Date: 2026-10-20 21:57:13 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://messdienstservice-stadtwerke-peine-servamw.eras-online.de //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: EvaluateHkRadiators.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; // @DataContract abstract class Eras2AppServiceModelBase { // @DataMember(Name="UserId") String? UserId; Eras2AppServiceModelBase({this.UserId}); Eras2AppServiceModelBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UserId = json['userId']; return this; } Map toJson() => { 'userId': UserId }; getTypeName() => "Eras2AppServiceModelBase"; TypeContext? context = _ctx; } // @DataContract class HkEvaluateParameter implements IConvertible { // @DataMember(Name="RadiatisId") int? RadiatisId; // @DataMember(Name="Value") String? Value; HkEvaluateParameter({this.RadiatisId,this.Value}); HkEvaluateParameter.fromJson(Map json) { fromMap(json); } fromMap(Map json) { RadiatisId = json['radiatisId']; Value = json['value']; return this; } Map toJson() => { 'radiatisId': RadiatisId, 'value': Value }; getTypeName() => "HkEvaluateParameter"; TypeContext? context = _ctx; } // @DataContract class HkEvaluateAttribute implements IConvertible { // @DataMember(Name="RadiatisId") int? RadiatisId; // @DataMember(Name="Value") int? Value; HkEvaluateAttribute({this.RadiatisId,this.Value}); HkEvaluateAttribute.fromJson(Map json) { fromMap(json); } fromMap(Map json) { RadiatisId = json['radiatisId']; Value = json['value']; return this; } Map toJson() => { 'radiatisId': RadiatisId, 'value': Value }; getTypeName() => "HkEvaluateAttribute"; TypeContext? context = _ctx; } // @DataContract class HkMatchDifference implements IConvertible { // @DataMember(Name="Code") String? Code; // @DataMember(Name="Name") String? Name; // @DataMember(Name="Value") String? Value; HkMatchDifference({this.Code,this.Name,this.Value}); HkMatchDifference.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Code = json['code']; Name = json['name']; Value = json['value']; return this; } Map toJson() => { 'code': Code, 'name': Name, 'value': Value }; getTypeName() => "HkMatchDifference"; TypeContext? context = _ctx; } // @DataContract class HkRadiatorMatch implements IConvertible { // @DataMember(Name="Match") int? Match; // @DataMember(Name="RadiatisRadiatorId") int? RadiatisRadiatorId; // @DataMember(Name="Producer") String? Producer; // @DataMember(Name="Model") String? Model; // @DataMember(Name="ModelNoteReference") String? ModelNoteReference; // @DataMember(Name="KcValue") double? KcValue; // @DataMember(Name="KqValue") double? KqValue; // @DataMember(Name="KtValue") double? KtValue; // @DataMember(Name="Differences") List? Differences; HkRadiatorMatch({this.Match,this.RadiatisRadiatorId,this.Producer,this.Model,this.ModelNoteReference,this.KcValue,this.KqValue,this.KtValue,this.Differences}); HkRadiatorMatch.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Match = json['match']; RadiatisRadiatorId = json['radiatisRadiatorId']; Producer = json['producer']; Model = json['model']; ModelNoteReference = json['modelNoteReference']; KcValue = JsonConverters.toDouble(json['kcValue']); KqValue = JsonConverters.toDouble(json['kqValue']); KtValue = JsonConverters.toDouble(json['ktValue']); Differences = JsonConverters.fromJson(json['differences'],'List',context!); return this; } Map toJson() => { 'match': Match, 'radiatisRadiatorId': RadiatisRadiatorId, 'producer': Producer, 'model': Model, 'modelNoteReference': ModelNoteReference, 'kcValue': KcValue, 'kqValue': KqValue, 'ktValue': KtValue, 'differences': JsonConverters.toJson(Differences,'List',context!) }; getTypeName() => "HkRadiatorMatch"; TypeContext? context = _ctx; } // @DataContract class EvaluateHkRadiatorsResponse implements IConvertible { // @DataMember(Name="Radiators") List? Radiators; // @DataMember(Name="ResponseStatus") ResponseStatus? ResponseStatus; EvaluateHkRadiatorsResponse({this.Radiators,this.ResponseStatus}); EvaluateHkRadiatorsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Radiators = JsonConverters.fromJson(json['radiators'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'radiators': JsonConverters.toJson(Radiators,'List',context!), 'responseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "EvaluateHkRadiatorsResponse"; TypeContext? context = _ctx; } // @Route("/App/{UserId}/HkEvaluate", "POST") // @DataContract class EvaluateHkRadiators extends Eras2AppServiceModelBase implements IReturn, IConvertible, IPost { // @DataMember(Name="RadiatorGroupId") int? RadiatorGroupId; // @DataMember(Name="Parameters") List? Parameters; // @DataMember(Name="Attributes") List? Attributes; // @DataMember(Name="DeviceTypeIdentifier") String? DeviceTypeIdentifier; // @DataMember(Name="MountingPoint") String? MountingPoint; // @DataMember(Name="MaxResultSize") int? MaxResultSize; EvaluateHkRadiators({this.RadiatorGroupId,this.Parameters,this.Attributes,this.DeviceTypeIdentifier,this.MountingPoint,this.MaxResultSize}); EvaluateHkRadiators.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); RadiatorGroupId = json['radiatorGroupId']; Parameters = JsonConverters.fromJson(json['parameters'],'List',context!); Attributes = JsonConverters.fromJson(json['attributes'],'List',context!); DeviceTypeIdentifier = json['deviceTypeIdentifier']; MountingPoint = json['mountingPoint']; MaxResultSize = json['maxResultSize']; return this; } Map toJson() => super.toJson()..addAll({ 'radiatorGroupId': RadiatorGroupId, 'parameters': JsonConverters.toJson(Parameters,'List',context!), 'attributes': JsonConverters.toJson(Attributes,'List',context!), 'deviceTypeIdentifier': DeviceTypeIdentifier, 'mountingPoint': MountingPoint, 'maxResultSize': MaxResultSize }); createResponse() => EvaluateHkRadiatorsResponse(); getResponseTypeName() => "EvaluateHkRadiatorsResponse"; getTypeName() => "EvaluateHkRadiators"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'messdienstservice_stadtwerke_peine_servamw.eras_online.de', types: { 'Eras2AppServiceModelBase': TypeInfo(TypeOf.AbstractClass), 'HkEvaluateParameter': TypeInfo(TypeOf.Class, create:() => HkEvaluateParameter()), 'HkEvaluateAttribute': TypeInfo(TypeOf.Class, create:() => HkEvaluateAttribute()), 'HkMatchDifference': TypeInfo(TypeOf.Class, create:() => HkMatchDifference()), 'HkRadiatorMatch': TypeInfo(TypeOf.Class, create:() => HkRadiatorMatch()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'EvaluateHkRadiatorsResponse': TypeInfo(TypeOf.Class, create:() => EvaluateHkRadiatorsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'EvaluateHkRadiators': TypeInfo(TypeOf.Class, create:() => EvaluateHkRadiators()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), });