/* Options: Date: 2025-12-06 07:05:26 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://backoffice-api.brovs.com //GlobalNamespace: BackofficeApi //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: NewsletterRecipientsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BackofficeApi; import 'package:servicestack/servicestack.dart'; enum NewsletterAreaOfInterest { RestaurantCafeBarClub, Fashion, Press, Blogger, PrivateIndividual, } class NewsletterRecipientDto implements IConvertible { String? firstName; String? lastName; String? email; NewsletterAreaOfInterest? areaOfInterest; String? phone; NewsletterRecipientDto({this.firstName,this.lastName,this.email,this.areaOfInterest,this.phone}); NewsletterRecipientDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { firstName = json['firstName']; lastName = json['lastName']; email = json['email']; areaOfInterest = JsonConverters.fromJson(json['areaOfInterest'],'NewsletterAreaOfInterest',context!); phone = json['phone']; return this; } Map toJson() => { 'firstName': firstName, 'lastName': lastName, 'email': email, 'areaOfInterest': JsonConverters.toJson(areaOfInterest,'NewsletterAreaOfInterest',context!), 'phone': phone }; getTypeName() => "NewsletterRecipientDto"; TypeContext? context = _ctx; } class NewsletterRecipientsResponse implements IConvertible { List? newsletterRecipients = []; NewsletterRecipientsResponse({this.newsletterRecipients}); NewsletterRecipientsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { newsletterRecipients = JsonConverters.fromJson(json['newsletterRecipients'],'List',context!); return this; } Map toJson() => { 'newsletterRecipients': JsonConverters.toJson(newsletterRecipients,'List',context!) }; getTypeName() => "NewsletterRecipientsResponse"; TypeContext? context = _ctx; } // @Route("/newsletter/recipients", "GET") class NewsletterRecipientsRequest implements IReturn, IGet, IConvertible { NewsletterRecipientsRequest(); NewsletterRecipientsRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => NewsletterRecipientsResponse(); getResponseTypeName() => "NewsletterRecipientsResponse"; getTypeName() => "NewsletterRecipientsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BackofficeApi', types: { 'NewsletterAreaOfInterest': TypeInfo(TypeOf.Enum, enumValues:NewsletterAreaOfInterest.values), 'NewsletterRecipientDto': TypeInfo(TypeOf.Class, create:() => NewsletterRecipientDto()), 'NewsletterRecipientsResponse': TypeInfo(TypeOf.Class, create:() => NewsletterRecipientsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'NewsletterRecipientsRequest': TypeInfo(TypeOf.Class, create:() => NewsletterRecipientsRequest()), });