/* Options: Date: 2025-12-06 07:06:24 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: GetBillingRequest.* //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 BillingContact implements IConvertible { String? person; String? phone; String? email; BillingContact({this.person,this.phone,this.email}); BillingContact.fromJson(Map json) { fromMap(json); } fromMap(Map json) { person = json['person']; phone = json['phone']; email = json['email']; return this; } Map toJson() => { 'person': person, 'phone': phone, 'email': email }; getTypeName() => "BillingContact"; TypeContext? context = _ctx; } class GetBillingResponse implements IConvertible { BillingEntity? entity; BillingContact? contactPerson; String? emailForBillingNotifications; String? customReference; GetBillingResponse({this.entity,this.contactPerson,this.emailForBillingNotifications,this.customReference}); GetBillingResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { entity = JsonConverters.fromJson(json['entity'],'BillingEntity',context!); contactPerson = JsonConverters.fromJson(json['contactPerson'],'BillingContact',context!); emailForBillingNotifications = json['emailForBillingNotifications']; customReference = json['customReference']; return this; } Map toJson() => { 'entity': JsonConverters.toJson(entity,'BillingEntity',context!), 'contactPerson': JsonConverters.toJson(contactPerson,'BillingContact',context!), 'emailForBillingNotifications': emailForBillingNotifications, 'customReference': customReference }; getTypeName() => "GetBillingResponse"; TypeContext? context = _ctx; } // @Route("/business/get_billing", "GET") class GetBillingRequest implements IReturn, IGet, IHasBusinessId, IConvertible { int? businessId; GetBillingRequest({this.businessId}); GetBillingRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { businessId = json['businessId']; return this; } Map toJson() => { 'businessId': businessId }; createResponse() => GetBillingResponse(); getResponseTypeName() => "GetBillingResponse"; getTypeName() => "GetBillingRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BusinessApi', types: { 'IHasBusinessId': TypeInfo(TypeOf.Interface), 'BillingEntity': TypeInfo(TypeOf.Class, create:() => BillingEntity()), 'BillingContact': TypeInfo(TypeOf.Class, create:() => BillingContact()), 'GetBillingResponse': TypeInfo(TypeOf.Class, create:() => GetBillingResponse()), 'GetBillingRequest': TypeInfo(TypeOf.Class, create:() => GetBillingRequest()), });