/* Options: Date: 2024-12-29 02:09:51 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: CRMCRUXUpsertRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class CRMCRUXSubscriptionUpsertRequest implements IConvertible { double? payment_amount; int? import_id; DateTime? payment_date; DateTime? start_date; DateTime? end_date; DateTime? added_date; CRMCRUXSubscriptionUpsertRequest({this.payment_amount,this.import_id,this.payment_date,this.start_date,this.end_date,this.added_date}); CRMCRUXSubscriptionUpsertRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { payment_amount = JsonConverters.toDouble(json['payment_amount']); import_id = json['import_id']; payment_date = JsonConverters.fromJson(json['payment_date'],'DateTime',context!); start_date = JsonConverters.fromJson(json['start_date'],'DateTime',context!); end_date = JsonConverters.fromJson(json['end_date'],'DateTime',context!); added_date = JsonConverters.fromJson(json['added_date'],'DateTime',context!); return this; } Map toJson() => { 'payment_amount': payment_amount, 'import_id': import_id, 'payment_date': JsonConverters.toJson(payment_date,'DateTime',context!), 'start_date': JsonConverters.toJson(start_date,'DateTime',context!), 'end_date': JsonConverters.toJson(end_date,'DateTime',context!), 'added_date': JsonConverters.toJson(added_date,'DateTime',context!) }; getTypeName() => "CRMCRUXSubscriptionUpsertRequest"; TypeContext? context = _ctx; } // @Route("/DynamicsCRM/CRUX/Upsert", "POST") class CRMCRUXUpsertRequest implements IReturn, IConvertible, IPost { int? regent_id; String? status; String? notes; bool? is_contact; bool? is_account; List? subscriptions; CRMCRUXUpsertRequest({this.regent_id,this.status,this.notes,this.is_contact,this.is_account,this.subscriptions}); CRMCRUXUpsertRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { regent_id = json['regent_id']; status = json['status']; notes = json['notes']; is_contact = json['is_contact']; is_account = json['is_account']; subscriptions = JsonConverters.fromJson(json['subscriptions'],'List',context!); return this; } Map toJson() => { 'regent_id': regent_id, 'status': status, 'notes': notes, 'is_contact': is_contact, 'is_account': is_account, 'subscriptions': JsonConverters.toJson(subscriptions,'List',context!) }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "CRMCRUXUpsertRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'CRMCRUXSubscriptionUpsertRequest': TypeInfo(TypeOf.Class, create:() => CRMCRUXSubscriptionUpsertRequest()), 'CRMCRUXUpsertRequest': TypeInfo(TypeOf.Class, create:() => CRMCRUXUpsertRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });