/* Options: Date: 2024-12-29 02:53:39 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: CRMSubscriptionUpsertMultipleRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; // @Route("/DynamicsCRM/Subscription/Upsert", "POST") class CRMSubscriptionUpsertRequest implements IReturn, IConvertible, IPost { int? regent_id; String? name; bool? optin; bool? optout; bool? is_contact; bool? is_account; DateTime? added_date; CRMSubscriptionUpsertRequest({this.regent_id,this.name,this.optin,this.optout,this.is_contact,this.is_account,this.added_date}); CRMSubscriptionUpsertRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { regent_id = json['regent_id']; name = json['name']; optin = json['optin']; optout = json['optout']; is_contact = json['is_contact']; is_account = json['is_account']; added_date = JsonConverters.fromJson(json['added_date'],'DateTime',context!); return this; } Map toJson() => { 'regent_id': regent_id, 'name': name, 'optin': optin, 'optout': optout, 'is_contact': is_contact, 'is_account': is_account, 'added_date': JsonConverters.toJson(added_date,'DateTime',context!) }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "CRMSubscriptionUpsertRequest"; TypeContext? context = _ctx; } // @Route("/DynamicsCRM/Subscription/Upsert/Multiple", "POST") class CRMSubscriptionUpsertMultipleRequest implements IReturn, IConvertible, IPost { List? subscriptions; CRMSubscriptionUpsertMultipleRequest({this.subscriptions}); CRMSubscriptionUpsertMultipleRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { subscriptions = JsonConverters.fromJson(json['subscriptions'],'List',context!); return this; } Map toJson() => { 'subscriptions': JsonConverters.toJson(subscriptions,'List',context!) }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "CRMSubscriptionUpsertMultipleRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'CRMSubscriptionUpsertRequest': TypeInfo(TypeOf.Class, create:() => CRMSubscriptionUpsertRequest()), 'CRMSubscriptionUpsertMultipleRequest': TypeInfo(TypeOf.Class, create:() => CRMSubscriptionUpsertMultipleRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });