/* Options: Date: 2026-10-20 17:26:57 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://fairtherm-servdesk.eras-online.de //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetDirektkostenList.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; // @DataContract class Direktkosten implements IConvertible { // @DataMember String? guid; // @DataMember String? label; // @DataMember DateTime? date; // @DataMember double? brutto; // @DataMember double? salesTax; // @DataMember double? quantity; // @DataMember String? type; // @DataMember bool? isDeleted; // @DataMember bool? isCreatedByApp; // @DataMember String? nutzerGuid; // @DataMember BillingInformation? billingInformation; Direktkosten({this.guid,this.label,this.date,this.brutto,this.salesTax,this.quantity,this.type,this.isDeleted,this.isCreatedByApp,this.nutzerGuid,this.billingInformation}); Direktkosten.fromJson(Map json) { fromMap(json); } fromMap(Map json) { guid = json['guid']; label = json['label']; date = JsonConverters.fromJson(json['date'],'DateTime',context!); brutto = JsonConverters.toDouble(json['brutto']); salesTax = JsonConverters.toDouble(json['salesTax']); quantity = JsonConverters.toDouble(json['quantity']); type = json['type']; isDeleted = json['isDeleted']; isCreatedByApp = json['isCreatedByApp']; nutzerGuid = json['nutzerGuid']; billingInformation = JsonConverters.fromJson(json['billingInformation'],'BillingInformation',context!); return this; } Map toJson() => { 'guid': guid, 'label': label, 'date': JsonConverters.toJson(date,'DateTime',context!), 'brutto': brutto, 'salesTax': salesTax, 'quantity': quantity, 'type': type, 'isDeleted': isDeleted, 'isCreatedByApp': isCreatedByApp, 'nutzerGuid': nutzerGuid, 'billingInformation': JsonConverters.toJson(billingInformation,'BillingInformation',context!) }; getTypeName() => "Direktkosten"; TypeContext? context = _ctx; } // @DataContract class Direktkosten implements IConvertible { // @DataMember(Name="Guid") String? Guid; // @DataMember(Name="Bezeichnung") String? Bezeichnung; // @DataMember(Name="Datum") DateTime? Datum; // @DataMember(Name="Brutto") double? Brutto; // @DataMember(Name="Mwst") double? Mwst; // @DataMember(Name="Menge") double? Menge; // @DataMember(Name="Typ") String? Typ; // @DataMember(Name="IstGeloescht") bool? IstGeloescht; // @DataMember(Name="IstErzeugtVonApp") bool? IstErzeugtVonApp; // @DataMember(Name="ObjektGuid") String? ObjektGuid; // @DataMember(Name="NutzerGuid") String? NutzerGuid; // @DataMember(Name="BillingInformationGuid") String? BillingInformationGuid; Direktkosten({this.Guid,this.Bezeichnung,this.Datum,this.Brutto,this.Mwst,this.Menge,this.Typ,this.IstGeloescht,this.IstErzeugtVonApp,this.ObjektGuid,this.NutzerGuid,this.BillingInformationGuid}); Direktkosten.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Guid = json['guid']; Bezeichnung = json['label']; Datum = JsonConverters.fromJson(json['date'],'DateTime',context!); Brutto = JsonConverters.toDouble(json['brutto']); Mwst = JsonConverters.toDouble(json['salesTax']); Menge = JsonConverters.toDouble(json['quantity']); Typ = json['type']; IstGeloescht = json['isDeleted']; IstErzeugtVonApp = json['isCreatedByApp']; ObjektGuid = json['objektGuid']; NutzerGuid = json['nutzerGuid']; BillingInformationGuid = json['billingInformationGuid']; return this; } Map toJson() => { 'guid': Guid, 'bezeichnung': Bezeichnung, 'datum': JsonConverters.toJson(Datum,'DateTime',context!), 'brutto': Brutto, 'mwst': Mwst, 'menge': Menge, 'typ': Typ, 'istGeloescht': IstGeloescht, 'istErzeugtVonApp': IstErzeugtVonApp, 'objektGuid': ObjektGuid, 'nutzerGuid': NutzerGuid, 'billingInformationGuid': BillingInformationGuid }; getTypeName() => "Direktkosten"; TypeContext? context = _ctx; } class GetDirektkostenListResponse implements IConvertible { List? direktkostenList; ResponseStatus? responseStatus; GetDirektkostenListResponse({this.direktkostenList,this.responseStatus}); GetDirektkostenListResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { direktkostenList = JsonConverters.fromJson(json['direktkostenList'],'List',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'direktkostenList': JsonConverters.toJson(direktkostenList,'List',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "GetDirektkostenListResponse"; TypeContext? context = _ctx; } // @Route("/api/v1/direktkosten", "GET") class GetDirektkostenList implements IReturn, IHasBearerToken, IConvertible, IGet { // @ApiMember(IsRequired=true, ParameterType="query") String? bearerToken; /** * Optional! Follow the format : /api/v1/direktkosten?filter[ObjektGuid]=* */ // @DataMember(Name="filter[ObjektGuid]") // @ApiMember(Description="Optional! Follow the format : /api/v1/direktkosten?filter[ObjektGuid]=*", ParameterType="query") String? filter_ObjektGuid_; /** * Optional! Follow the format : /api/v1/direktkosten?filter[NutzerGuid]=* */ // @DataMember(Name="filter[NutzerGuid]") // @ApiMember(Description="Optional! Follow the format : /api/v1/direktkosten?filter[NutzerGuid]=*", ParameterType="query") String? filter_NutzerGuid_; /** * Optional! Follow the format : /api/v1/direktkosten?filter[BillingInformationGuid]=* */ // @DataMember(Name="filter[BillingInformationGuid]") // @ApiMember(Description="Optional! Follow the format : /api/v1/direktkosten?filter[BillingInformationGuid]=*", ParameterType="query") String? filter_BillingInformationGuid_; GetDirektkostenList({this.bearerToken,this.filter_ObjektGuid_,this.filter_NutzerGuid_,this.filter_BillingInformationGuid_}); GetDirektkostenList.fromJson(Map json) { fromMap(json); } fromMap(Map json) { bearerToken = json['bearerToken']; filter_ObjektGuid_ = json['filterByObjektGuid']; filter_NutzerGuid_ = json['filterByNutzerGuid']; filter_BillingInformationGuid_ = json['filterByBillingInformationGuid']; return this; } Map toJson() => { 'bearerToken': bearerToken, 'filter_ObjektGuid_': filter_ObjektGuid_, 'filter_NutzerGuid_': filter_NutzerGuid_, 'filter_BillingInformationGuid_': filter_BillingInformationGuid_ }; createResponse() => GetDirektkostenListResponse(); getResponseTypeName() => "GetDirektkostenListResponse"; getTypeName() => "GetDirektkostenList"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'fairtherm_servdesk.eras_online.de', types: { 'Direktkosten': TypeInfo(TypeOf.Class, create:() => Direktkosten()), 'BillingInformation': TypeInfo(TypeOf.Class, create:() => BillingInformation()), 'GetDirektkostenListResponse': TypeInfo(TypeOf.Class, create:() => GetDirektkostenListResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetDirektkostenList': TypeInfo(TypeOf.Class, create:() => GetDirektkostenList()), });