/* Options: Date: 2024-11-21 11:28: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: CreateEAccountingArticle.* //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", "POST") class CreateEAccountingArticle extends BaseArticleDto implements IReturn, ICompany, IConvertible, IPost { int? ServiceId; String? CompanyId; CreateEAccountingArticle({this.ServiceId,this.CompanyId}); CreateEAccountingArticle.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ServiceId = json['ServiceId']; CompanyId = json['CompanyId']; return this; } Map toJson() => super.toJson()..addAll({ 'ServiceId': ServiceId, 'CompanyId': CompanyId }); createResponse() => EAccountingArticleQueryResponse(); getResponseTypeName() => "EAccountingArticleQueryResponse"; getTypeName() => "CreateEAccountingArticle"; 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()), 'CreateEAccountingArticle': TypeInfo(TypeOf.Class, create:() => CreateEAccountingArticle()), });