/* Options: Date: 2026-10-20 15:21:50 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: AddDevicePhoto.* //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; } class AddDevicePhotoResponse implements IConvertible { ResponseStatus? responseStatus; AddDevicePhotoResponse({this.responseStatus}); AddDevicePhotoResponse.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() => "AddDevicePhotoResponse"; TypeContext? context = _ctx; } class AddDevicePhotoResponse implements IConvertible { ResponseStatus? responseStatus; AddDevicePhotoResponse({this.responseStatus}); AddDevicePhotoResponse.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() => "AddDevicePhotoResponse"; TypeContext? context = _ctx; } // @Route("/Nutzeinheit/Device/Photo/{Guid}", "POST") // @DataContract class AddDevicePhoto implements IReturn, IConvertible, IPost { // @DataMember(Name="Guid") String? Guid; AddDevicePhoto({this.Guid}); AddDevicePhoto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Guid = json['guid']; return this; } Map toJson() => { 'guid': Guid }; createResponse() => AddDevicePhotoResponse(); getResponseTypeName() => "AddDevicePhotoResponse"; getTypeName() => "AddDevicePhoto"; TypeContext? context = _ctx; } // @Route("/App/{UserId}/Nutzeinheit/Device/Photo/{Guid}", "POST") // @DataContract class AddDevicePhoto extends Eras2AppServiceModelBase implements IReturn, IConvertible, IPost { // @DataMember(Name="Guid") String? Guid; AddDevicePhoto({this.Guid}); AddDevicePhoto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Guid = json['guid']; return this; } Map toJson() => super.toJson()..addAll({ 'guid': Guid }); createResponse() => AddDevicePhotoResponse(); getResponseTypeName() => "AddDevicePhotoResponse"; getTypeName() => "AddDevicePhoto"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'messdienstservice_stadtwerke_peine_servamw.eras_online.de', types: { 'Eras2AppServiceModelBase': TypeInfo(TypeOf.AbstractClass), 'AddDevicePhotoResponse': TypeInfo(TypeOf.Class, create:() => AddDevicePhotoResponse()), 'AddDevicePhoto': TypeInfo(TypeOf.Class, create:() => AddDevicePhoto()), });