/* Options: Date: 2025-12-06 06:27:18 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: GetBusinessRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BusinessApi; import 'package:servicestack/servicestack.dart'; abstract class IHasBusinessId { int? businessId; } class BusinessContact implements IConvertible { String? firstName; String? lastName; String? position; String? phone; String? email; BusinessContact({this.firstName,this.lastName,this.position,this.phone,this.email}); BusinessContact.fromJson(Map json) { fromMap(json); } fromMap(Map json) { firstName = json['firstName']; lastName = json['lastName']; position = json['position']; phone = json['phone']; email = json['email']; return this; } Map toJson() => { 'firstName': firstName, 'lastName': lastName, 'position': position, 'phone': phone, 'email': email }; getTypeName() => "BusinessContact"; TypeContext? context = _ctx; } class BusinessDto implements IConvertible { int? id; String? name; String? organizationNumber; String? streetAddress; String? postalCode; String? city; String? country; BusinessContact? contact; BusinessDto({this.id,this.name,this.organizationNumber,this.streetAddress,this.postalCode,this.city,this.country,this.contact}); BusinessDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; organizationNumber = json['organizationNumber']; streetAddress = json['streetAddress']; postalCode = json['postalCode']; city = json['city']; country = json['country']; contact = JsonConverters.fromJson(json['contact'],'BusinessContact',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'organizationNumber': organizationNumber, 'streetAddress': streetAddress, 'postalCode': postalCode, 'city': city, 'country': country, 'contact': JsonConverters.toJson(contact,'BusinessContact',context!) }; getTypeName() => "BusinessDto"; TypeContext? context = _ctx; } class GetBusinessResponse implements IConvertible { BusinessDto? business; GetBusinessResponse({this.business}); GetBusinessResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { business = JsonConverters.fromJson(json['business'],'BusinessDto',context!); return this; } Map toJson() => { 'business': JsonConverters.toJson(business,'BusinessDto',context!) }; getTypeName() => "GetBusinessResponse"; TypeContext? context = _ctx; } // @Route("/business/get", "GET") class GetBusinessRequest implements IReturn, IGet, IHasBusinessId, IConvertible { int? businessId; GetBusinessRequest({this.businessId}); GetBusinessRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { businessId = json['businessId']; return this; } Map toJson() => { 'businessId': businessId }; createResponse() => GetBusinessResponse(); getResponseTypeName() => "GetBusinessResponse"; getTypeName() => "GetBusinessRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BusinessApi', types: { 'IHasBusinessId': TypeInfo(TypeOf.Interface), 'BusinessContact': TypeInfo(TypeOf.Class, create:() => BusinessContact()), 'BusinessDto': TypeInfo(TypeOf.Class, create:() => BusinessDto()), 'GetBusinessResponse': TypeInfo(TypeOf.Class, create:() => GetBusinessResponse()), 'GetBusinessRequest': TypeInfo(TypeOf.Class, create:() => GetBusinessRequest()), });