/* Options: Date: 2024-11-21 13:51:32 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: EAccountingArticleQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class BaseArticleDto implements IConvertible { String? ArticleId; double? ArticlePrice; String? ArticleName; DateTime? CreatedDate; BaseArticleDto({this.ArticleId,this.ArticlePrice,this.ArticleName,this.CreatedDate}); BaseArticleDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ArticleId = json['ArticleId']; ArticlePrice = JsonConverters.toDouble(json['ArticlePrice']); ArticleName = json['ArticleName']; CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); return this; } Map toJson() => { 'ArticleId': ArticleId, 'ArticlePrice': ArticlePrice, 'ArticleName': ArticleName, 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!) }; getTypeName() => "BaseArticleDto"; TypeContext? context = _ctx; } class EAccountingArticleQueryResponse extends BaseArticleDto implements IConvertible { String? UnitId; String? CodingId; String? VatRate; String? VatRatePercent; String? CurrencySign; EAccountingArticleQueryResponse({this.UnitId,this.CodingId,this.VatRate,this.VatRatePercent,this.CurrencySign}); EAccountingArticleQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); UnitId = json['UnitId']; CodingId = json['CodingId']; VatRate = json['VatRate']; VatRatePercent = json['VatRatePercent']; CurrencySign = json['CurrencySign']; return this; } Map toJson() => super.toJson()..addAll({ 'UnitId': UnitId, 'CodingId': CodingId, 'VatRate': VatRate, 'VatRatePercent': VatRatePercent, 'CurrencySign': CurrencySign }); getTypeName() => "EAccountingArticleQueryResponse"; TypeContext? context = _ctx; } // @Route("/eaccounting/articles", "GET") class EAccountingArticleQuery implements IReturn, ICompany, IConvertible, IGet { String? CompanyId; EAccountingArticleQuery({this.CompanyId}); EAccountingArticleQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; return this; } Map toJson() => { 'CompanyId': CompanyId }; createResponse() => EAccountingArticleQueryResponse(); getResponseTypeName() => "EAccountingArticleQueryResponse"; getTypeName() => "EAccountingArticleQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'BaseArticleDto': TypeInfo(TypeOf.Class, create:() => BaseArticleDto()), 'EAccountingArticleQueryResponse': TypeInfo(TypeOf.Class, create:() => EAccountingArticleQueryResponse()), 'EAccountingArticleQuery': TypeInfo(TypeOf.Class, create:() => EAccountingArticleQuery()), });