/* Options: Date: 2024-12-27 17:31:00 Version: 8.12 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://taxfiling.pwc.de //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetDefinitionKeysAsync.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; enum VatType { UStVA, UStDV, UStSV, USt, ZM, } /** * Create a VAT return from a Return Builder definition. Use the retrieved values as keys for the dictionary of properties that Return Builder provides. */ // @Api(Description="Create a VAT return from a Return Builder definition.\n Use the retrieved values as keys for the dictionary of properties that Return Builder provides.") abstract class GetDefinitionKeysBase implements IGet { /** * The year of the assessment (Veranlagungsjahr). */ // @ApiMember(Description="The year of the assessment (Veranlagungsjahr).") int? year; /** * The type of VAT return. */ // @ApiMember(Description="The type of VAT return.") VatType? vatType; GetDefinitionKeysBase({this.year,this.vatType}); GetDefinitionKeysBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { year = json['year']; vatType = JsonConverters.fromJson(json['vatType'],'VatType',context!); return this; } Map toJson() => { 'year': year, 'vatType': JsonConverters.toJson(vatType,'VatType',context!) }; getTypeName() => "GetDefinitionKeysBase"; TypeContext? context = _ctx; } /** * An asynchronous service to retrieve keys for the identification of VAT properties. */ // @Route("/GetDefinitionKeysAsync", "GET") // @Api(Description="An asynchronous service to retrieve keys for the identification of VAT properties.") class GetDefinitionKeysAsync extends GetDefinitionKeysBase implements IReturn>, IConvertible, IGet { /** * The year of the assessment (Veranlagungsjahr). */ // @ApiMember(Description="The year of the assessment (Veranlagungsjahr).") int? year; /** * The type of VAT return. */ // @ApiMember(Description="The type of VAT return.") VatType? vatType; GetDefinitionKeysAsync({this.year,this.vatType}); GetDefinitionKeysAsync.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); year = json['year']; vatType = JsonConverters.fromJson(json['vatType'],'VatType',context!); return this; } Map toJson() => super.toJson()..addAll({ 'year': year, 'vatType': JsonConverters.toJson(vatType,'VatType',context!) }); createResponse() => []; getResponseTypeName() => "List"; getTypeName() => "GetDefinitionKeysAsync"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'taxfiling.pwc.de', types: { 'VatType': TypeInfo(TypeOf.Enum, enumValues:VatType.values), 'GetDefinitionKeysBase': TypeInfo(TypeOf.AbstractClass), 'GetDefinitionKeysAsync': TypeInfo(TypeOf.Class, create:() => GetDefinitionKeysAsync()), });