/* Options: Date: 2024-11-21 12:36:16 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetEAccountingSettingsQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class EAccountingSettingsQueryResponse implements IConvertible { String? CompanyId; bool? Active; String? DefaultArticle6PercentVat; double? DefaultArticle12PercentVat; double? DefaultArticle25PercentVat; String? DefaultCreateType; String? DefaultTermsOfPaymentId; EAccountingSettingsQueryResponse({this.CompanyId,this.Active,this.DefaultArticle6PercentVat,this.DefaultArticle12PercentVat,this.DefaultArticle25PercentVat,this.DefaultCreateType,this.DefaultTermsOfPaymentId}); EAccountingSettingsQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Active = json['Active']; DefaultArticle6PercentVat = json['DefaultArticle6PercentVat']; DefaultArticle12PercentVat = JsonConverters.toDouble(json['DefaultArticle12PercentVat']); DefaultArticle25PercentVat = JsonConverters.toDouble(json['DefaultArticle25PercentVat']); DefaultCreateType = json['DefaultCreateType']; DefaultTermsOfPaymentId = json['DefaultTermsOfPaymentId']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'Active': Active, 'DefaultArticle6PercentVat': DefaultArticle6PercentVat, 'DefaultArticle12PercentVat': DefaultArticle12PercentVat, 'DefaultArticle25PercentVat': DefaultArticle25PercentVat, 'DefaultCreateType': DefaultCreateType, 'DefaultTermsOfPaymentId': DefaultTermsOfPaymentId }; getTypeName() => "EAccountingSettingsQueryResponse"; TypeContext? context = _ctx; } // @Route("/eaccounting/settings", "GET") class GetEAccountingSettingsQuery implements IReturn, ICompany, IConvertible, IGet { /** * E-Accounting settings company Id. */ // @ApiMember(Description="E-Accounting settings company Id.") String? CompanyId; GetEAccountingSettingsQuery({this.CompanyId}); GetEAccountingSettingsQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; return this; } Map toJson() => { 'CompanyId': CompanyId }; createResponse() => EAccountingSettingsQueryResponse(); getResponseTypeName() => "EAccountingSettingsQueryResponse"; getTypeName() => "GetEAccountingSettingsQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'EAccountingSettingsQueryResponse': TypeInfo(TypeOf.Class, create:() => EAccountingSettingsQueryResponse()), 'GetEAccountingSettingsQuery': TypeInfo(TypeOf.Class, create:() => GetEAccountingSettingsQuery()), });