/* Options: Date: 2025-12-06 06:41:36 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: AddOrUpdateBusinessContactRequest.* //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 AddOrUpdateBusinessContactResponse implements IConvertible { BusinessContact? businessContact; AddOrUpdateBusinessContactResponse({this.businessContact}); AddOrUpdateBusinessContactResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { businessContact = JsonConverters.fromJson(json['businessContact'],'BusinessContact',context!); return this; } Map toJson() => { 'businessContact': JsonConverters.toJson(businessContact,'BusinessContact',context!) }; getTypeName() => "AddOrUpdateBusinessContactResponse"; TypeContext? context = _ctx; } // @Route("/business/add_or_update_business_contact", "PUT") class AddOrUpdateBusinessContactRequest implements IReturn, IPut, IHasBusinessId, IConvertible { int? businessId; BusinessContact? businessContact; AddOrUpdateBusinessContactRequest({this.businessId,this.businessContact}); AddOrUpdateBusinessContactRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { businessId = json['businessId']; businessContact = JsonConverters.fromJson(json['businessContact'],'BusinessContact',context!); return this; } Map toJson() => { 'businessId': businessId, 'businessContact': JsonConverters.toJson(businessContact,'BusinessContact',context!) }; createResponse() => AddOrUpdateBusinessContactResponse(); getResponseTypeName() => "AddOrUpdateBusinessContactResponse"; getTypeName() => "AddOrUpdateBusinessContactRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BusinessApi', types: { 'IHasBusinessId': TypeInfo(TypeOf.Interface), 'BusinessContact': TypeInfo(TypeOf.Class, create:() => BusinessContact()), 'AddOrUpdateBusinessContactResponse': TypeInfo(TypeOf.Class, create:() => AddOrUpdateBusinessContactResponse()), 'AddOrUpdateBusinessContactRequest': TypeInfo(TypeOf.Class, create:() => AddOrUpdateBusinessContactRequest()), });