/* Options: Date: 2025-12-06 07:50:01 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://business-api.brovs.com //GlobalNamespace: BusinessApi //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetBillingEntityRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BusinessApi; import 'package:servicestack/servicestack.dart'; abstract class IHasBusinessId { int? businessId; } class BillingEntity implements IConvertible { String? name; String? organizationNumber; String? postalAddress; String? postalCode; String? city; String? countryCode; BillingEntity({this.name,this.organizationNumber,this.postalAddress,this.postalCode,this.city,this.countryCode}); BillingEntity.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; organizationNumber = json['organizationNumber']; postalAddress = json['postalAddress']; postalCode = json['postalCode']; city = json['city']; countryCode = json['countryCode']; return this; } Map toJson() => { 'name': name, 'organizationNumber': organizationNumber, 'postalAddress': postalAddress, 'postalCode': postalCode, 'city': city, 'countryCode': countryCode }; getTypeName() => "BillingEntity"; TypeContext? context = _ctx; } class GetBillingEntityResponse implements IConvertible { BillingEntity? billingEntity; GetBillingEntityResponse({this.billingEntity}); GetBillingEntityResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { billingEntity = JsonConverters.fromJson(json['billingEntity'],'BillingEntity',context!); return this; } Map toJson() => { 'billingEntity': JsonConverters.toJson(billingEntity,'BillingEntity',context!) }; getTypeName() => "GetBillingEntityResponse"; TypeContext? context = _ctx; } // @Route("/business/get_billing_company", "GET") class GetBillingEntityRequest implements IReturn, IGet, IHasBusinessId, IConvertible { int? businessId; GetBillingEntityRequest({this.businessId}); GetBillingEntityRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { businessId = json['businessId']; return this; } Map toJson() => { 'businessId': businessId }; createResponse() => GetBillingEntityResponse(); getResponseTypeName() => "GetBillingEntityResponse"; getTypeName() => "GetBillingEntityRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BusinessApi', types: { 'IHasBusinessId': TypeInfo(TypeOf.Interface), 'BillingEntity': TypeInfo(TypeOf.Class, create:() => BillingEntity()), 'GetBillingEntityResponse': TypeInfo(TypeOf.Class, create:() => GetBillingEntityResponse()), 'GetBillingEntityRequest': TypeInfo(TypeOf.Class, create:() => GetBillingEntityRequest()), });