/* Options: Date: 2024-04-29 04:37:11 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: BatchCheckElsterAsync.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; /** * Represents a structure that encapsulates a tax declaration. */ // @Api(Description="Represents a structure that encapsulates a tax declaration.") class TaxData implements IConvertible { /** * The unique identifier of the tax data. */ // @ApiMember(Description="The unique identifier of the tax data.", IsRequired=true) String? id; /** * The XML-based tax declaration. */ // @ApiMember(Description="The XML-based tax declaration.", IsRequired=true) String? content; TaxData({this.id,this.content}); TaxData.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; content = json['content']; return this; } Map toJson() => { 'id': id, 'content': content }; getTypeName() => "TaxData"; TypeContext? context = _ctx; } /** * A base service to perform basic checks on a batch of tax data. */ // @Api(Description="A base service to perform basic checks on a batch of tax data.") abstract class BatchCheckElsterBase implements IPost { /** * The batch of ELSTER tax data to check. */ // @ApiMember(Description="The batch of ELSTER tax data to check.", Name="Data") List? data; BatchCheckElsterBase({this.data}); BatchCheckElsterBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { data = JsonConverters.fromJson(json['data'],'List',context!); return this; } Map toJson() => { 'data': JsonConverters.toJson(data,'List',context!) }; getTypeName() => "BatchCheckElsterBase"; TypeContext? context = _ctx; } /** * An asynchronous service to perform basic checks on a batch of tax data. */ // @Route("/BatchCheckElsterAsync", "POST") // @Api(Description="An asynchronous service to perform basic checks on a batch of tax data.") class BatchCheckElsterAsync extends BatchCheckElsterBase implements IReturn>, IConvertible, IPost { /** * The batch of ELSTER tax data to check. */ // @ApiMember(Description="The batch of ELSTER tax data to check.", Name="Data") List? data; BatchCheckElsterAsync({this.data}); BatchCheckElsterAsync.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); data = JsonConverters.fromJson(json['data'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'data': JsonConverters.toJson(data,'List',context!) }); createResponse() => []; getResponseTypeName() => "List"; getTypeName() => "BatchCheckElsterAsync"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'taxfiling.pwc.de', types: { 'TaxData': TypeInfo(TypeOf.Class, create:() => TaxData()), 'BatchCheckElsterBase': TypeInfo(TypeOf.AbstractClass), 'List': TypeInfo(TypeOf.Class, create:() => []), 'BatchCheckElsterAsync': TypeInfo(TypeOf.Class, create:() => BatchCheckElsterAsync()), });