/* Options: Date: 2026-10-20 21:08:28 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://kromer-servamw.eras-online.de //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AddNutzeinheitPhoto.* //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 AddNutzeinheitPhotoResponse implements IConvertible { ResponseStatus? responseStatus; AddNutzeinheitPhotoResponse({this.responseStatus}); AddNutzeinheitPhotoResponse.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() => "AddNutzeinheitPhotoResponse"; TypeContext? context = _ctx; } class AddNutzeinheitPhotoResponse implements IConvertible { ResponseStatus? responseStatus; AddNutzeinheitPhotoResponse({this.responseStatus}); AddNutzeinheitPhotoResponse.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() => "AddNutzeinheitPhotoResponse"; TypeContext? context = _ctx; } // @Route("/Nutzeinheit/Photo/{Guid}", "POST") // @DataContract class AddNutzeinheitPhoto implements IReturn, IConvertible, IPost { // @DataMember(Name="Guid") String? Guid; AddNutzeinheitPhoto({this.Guid}); AddNutzeinheitPhoto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Guid = json['guid']; return this; } Map toJson() => { 'guid': Guid }; createResponse() => AddNutzeinheitPhotoResponse(); getResponseTypeName() => "AddNutzeinheitPhotoResponse"; getTypeName() => "AddNutzeinheitPhoto"; TypeContext? context = _ctx; } // @Route("/App/{UserId}/Nutzeinheit/Photo/{Guid}", "POST") // @DataContract class AddNutzeinheitPhoto extends Eras2AppServiceModelBase implements IReturn, IConvertible, IPost { // @DataMember(Name="Guid") String? Guid; AddNutzeinheitPhoto({this.Guid}); AddNutzeinheitPhoto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Guid = json['guid']; return this; } Map toJson() => super.toJson()..addAll({ 'guid': Guid }); createResponse() => AddNutzeinheitPhotoResponse(); getResponseTypeName() => "AddNutzeinheitPhotoResponse"; getTypeName() => "AddNutzeinheitPhoto"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'kromer_servamw.eras_online.de', types: { 'Eras2AppServiceModelBase': TypeInfo(TypeOf.AbstractClass), 'AddNutzeinheitPhotoResponse': TypeInfo(TypeOf.Class, create:() => AddNutzeinheitPhotoResponse()), 'AddNutzeinheitPhoto': TypeInfo(TypeOf.Class, create:() => AddNutzeinheitPhoto()), });