/* Options: Date: 2024-12-29 03:24:01 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: CMSummariesRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class CMListResponse implements IConvertible { String? id; String? name; String? status; List? segments; CMListResponse({this.id,this.name,this.status,this.segments}); CMListResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; status = json['status']; segments = JsonConverters.fromJson(json['segments'],'List',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'status': status, 'segments': JsonConverters.toJson(segments,'List',context!) }; getTypeName() => "CMListResponse"; TypeContext? context = _ctx; } class CMSummaryResponse implements IConvertible { String? email; bool? is_optin; bool? is_ebr; String? is_express_consent; bool? is_suppressed; String? last_consent_source; DateTime? last_consent_date; DateTime? last_event_date; DateTime? last_reframe_purchase_date; List? lists; CMSummaryResponse({this.email,this.is_optin,this.is_ebr,this.is_express_consent,this.is_suppressed,this.last_consent_source,this.last_consent_date,this.last_event_date,this.last_reframe_purchase_date,this.lists}); CMSummaryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { email = json['email']; is_optin = json['is_optin']; is_ebr = json['is_ebr']; is_express_consent = json['is_express_consent']; is_suppressed = json['is_suppressed']; last_consent_source = json['last_consent_source']; last_consent_date = JsonConverters.fromJson(json['last_consent_date'],'DateTime',context!); last_event_date = JsonConverters.fromJson(json['last_event_date'],'DateTime',context!); last_reframe_purchase_date = JsonConverters.fromJson(json['last_reframe_purchase_date'],'DateTime',context!); lists = JsonConverters.fromJson(json['lists'],'List',context!); return this; } Map toJson() => { 'email': email, 'is_optin': is_optin, 'is_ebr': is_ebr, 'is_express_consent': is_express_consent, 'is_suppressed': is_suppressed, 'last_consent_source': last_consent_source, 'last_consent_date': JsonConverters.toJson(last_consent_date,'DateTime',context!), 'last_event_date': JsonConverters.toJson(last_event_date,'DateTime',context!), 'last_reframe_purchase_date': JsonConverters.toJson(last_reframe_purchase_date,'DateTime',context!), 'lists': JsonConverters.toJson(lists,'List',context!) }; getTypeName() => "CMSummaryResponse"; TypeContext? context = _ctx; } // @Route("/CampaignMonitor/Summaries", "POST") class CMSummariesRequest implements IReturn>, IConvertible, IPost { CMSummariesRequest(); CMSummariesRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => []; getResponseTypeName() => "List"; getTypeName() => "CMSummariesRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'CMListResponse': TypeInfo(TypeOf.Class, create:() => CMListResponse()), 'CMSummaryResponse': TypeInfo(TypeOf.Class, create:() => CMSummaryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CMSummariesRequest': TypeInfo(TypeOf.Class, create:() => CMSummariesRequest()), });