/* Options: Date: 2025-04-24 17:28:45 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetCompanyInvoiceArticle.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class BaseModel implements IConvertible { BaseModel(); BaseModel.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "BaseModel"; TypeContext? context = _ctx; } class InvoiceArticle extends BaseModel implements IConvertible { // @Required() String? Name; int? LicenseTypeId; int? LicenseProductTypeId; bool? IsMainLicense; String? VossProductGroupId; DateTime? ModifiedDate; // @Required() int? Id; InvoiceArticle({this.Name,this.LicenseTypeId,this.LicenseProductTypeId,this.IsMainLicense,this.VossProductGroupId,this.ModifiedDate,this.Id}); InvoiceArticle.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; LicenseTypeId = json['LicenseTypeId']; LicenseProductTypeId = json['LicenseProductTypeId']; IsMainLicense = json['IsMainLicense']; VossProductGroupId = json['VossProductGroupId']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'LicenseTypeId': LicenseTypeId, 'LicenseProductTypeId': LicenseProductTypeId, 'IsMainLicense': IsMainLicense, 'VossProductGroupId': VossProductGroupId, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "InvoiceArticle"; TypeContext? context = _ctx; } class CompanyInvoiceArticleQueryResponse implements IConvertible { String? Name; int? LicenseTypeId; int? LicenseProductTypeId; bool? IsMainLicense; String? VossProductGroupId; int? Id; CompanyInvoiceArticleQueryResponse({this.Name,this.LicenseTypeId,this.LicenseProductTypeId,this.IsMainLicense,this.VossProductGroupId,this.Id}); CompanyInvoiceArticleQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; LicenseTypeId = json['LicenseTypeId']; LicenseProductTypeId = json['LicenseProductTypeId']; IsMainLicense = json['IsMainLicense']; VossProductGroupId = json['VossProductGroupId']; Id = json['Id']; return this; } Map toJson() => { 'Name': Name, 'LicenseTypeId': LicenseTypeId, 'LicenseProductTypeId': LicenseProductTypeId, 'IsMainLicense': IsMainLicense, 'VossProductGroupId': VossProductGroupId, 'Id': Id }; getTypeName() => "CompanyInvoiceArticleQueryResponse"; TypeContext? context = _ctx; } // @Route("/company/invoice/article", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") class GetCompanyInvoiceArticle extends QueryDb2 implements IReturn>, IConvertible, IGet { GetCompanyInvoiceArticle(); GetCompanyInvoiceArticle.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "GetCompanyInvoiceArticle"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'BaseModel': TypeInfo(TypeOf.Class, create:() => BaseModel()), 'InvoiceArticle': TypeInfo(TypeOf.Class, create:() => InvoiceArticle()), 'CompanyInvoiceArticleQueryResponse': TypeInfo(TypeOf.Class, create:() => CompanyInvoiceArticleQueryResponse()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'GetCompanyInvoiceArticle': TypeInfo(TypeOf.Class, create:() => GetCompanyInvoiceArticle()), 'List': TypeInfo(TypeOf.Class, create:() => []), });