/* Options: Date: 2024-12-29 03:49:42 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://data.regent-college.edu //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CMGiveExpressConsentRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; // @Route("/CampaignMonitor/{email}/GiveExpressConsent", "POST") class CMGiveExpressConsentRequest implements IConvertible, IPost { String? email; String? preferred_name; String? first_name; String? last_name; String? salutation; String? city; String? country; String? consent_source; CMGiveExpressConsentRequest({this.email,this.preferred_name,this.first_name,this.last_name,this.salutation,this.city,this.country,this.consent_source}); CMGiveExpressConsentRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { email = json['email']; preferred_name = json['preferred_name']; first_name = json['first_name']; last_name = json['last_name']; salutation = json['salutation']; city = json['city']; country = json['country']; consent_source = json['consent_source']; return this; } Map toJson() => { 'email': email, 'preferred_name': preferred_name, 'first_name': first_name, 'last_name': last_name, 'salutation': salutation, 'city': city, 'country': country, 'consent_source': consent_source }; getTypeName() => "CMGiveExpressConsentRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'CMGiveExpressConsentRequest': TypeInfo(TypeOf.Class, create:() => CMGiveExpressConsentRequest()), });