/* Options: Date: 2024-12-23 12:43:27 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://consumer-api.brovs.com //GlobalNamespace: ConsumerApi //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: NewsletterSignupRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library ConsumerApi; import 'package:servicestack/servicestack.dart'; enum NewsletterAreaOfInterest { RestaurantCafeBarClub, Fashion, Press, Blogger, PrivateIndividual, } class NewsletterSignupResponse implements IConvertible { bool? success; NewsletterSignupResponse({this.success}); NewsletterSignupResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { success = json['success']; return this; } Map toJson() => { 'success': success }; getTypeName() => "NewsletterSignupResponse"; TypeContext? context = _ctx; } class NewsletterSignupRequest implements IReturn, IPost, IConvertible { String? firstName; String? lastName; String? email; NewsletterAreaOfInterest? areaOfInterest; String? phone; NewsletterSignupRequest({this.firstName,this.lastName,this.email,this.areaOfInterest,this.phone}); NewsletterSignupRequest.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 }; createResponse() => NewsletterSignupResponse(); getResponseTypeName() => "NewsletterSignupResponse"; getTypeName() => "NewsletterSignupRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'ConsumerApi', types: { 'NewsletterAreaOfInterest': TypeInfo(TypeOf.Enum, enumValues:NewsletterAreaOfInterest.values), 'NewsletterSignupResponse': TypeInfo(TypeOf.Class, create:() => NewsletterSignupResponse()), 'NewsletterSignupRequest': TypeInfo(TypeOf.Class, create:() => NewsletterSignupRequest()), });