/* Options: Date: 2024-12-29 02:28:33 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: CRMPaymentsDatamartRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class CRMPaymentDatamartResponse implements IConvertible { String? guid; int? regent_id; String? addressee; int? soft_credit_regent_id; int? second_soft_credit_regent_id; String? donation_id; String? designation; String? pretty_designation; double? pledged; double? paid; double? paid_canadian; DateTime? payment_date; CRMPaymentDatamartResponse({this.guid,this.regent_id,this.addressee,this.soft_credit_regent_id,this.second_soft_credit_regent_id,this.donation_id,this.designation,this.pretty_designation,this.pledged,this.paid,this.paid_canadian,this.payment_date}); CRMPaymentDatamartResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { guid = json['guid']; regent_id = json['regent_id']; addressee = json['addressee']; soft_credit_regent_id = json['soft_credit_regent_id']; second_soft_credit_regent_id = json['second_soft_credit_regent_id']; donation_id = json['donation_id']; designation = json['designation']; pretty_designation = json['pretty_designation']; pledged = JsonConverters.toDouble(json['pledged']); paid = JsonConverters.toDouble(json['paid']); paid_canadian = JsonConverters.toDouble(json['paid_canadian']); payment_date = JsonConverters.fromJson(json['payment_date'],'DateTime',context!); return this; } Map toJson() => { 'guid': guid, 'regent_id': regent_id, 'addressee': addressee, 'soft_credit_regent_id': soft_credit_regent_id, 'second_soft_credit_regent_id': second_soft_credit_regent_id, 'donation_id': donation_id, 'designation': designation, 'pretty_designation': pretty_designation, 'pledged': pledged, 'paid': paid, 'paid_canadian': paid_canadian, 'payment_date': JsonConverters.toJson(payment_date,'DateTime',context!) }; getTypeName() => "CRMPaymentDatamartResponse"; TypeContext? context = _ctx; } class CRMPaymentsDatamartResponse implements IConvertible { List? personal_payments; List? other_payments; CRMPaymentsDatamartResponse({this.personal_payments,this.other_payments}); CRMPaymentsDatamartResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { personal_payments = JsonConverters.fromJson(json['personal_payments'],'List',context!); other_payments = JsonConverters.fromJson(json['other_payments'],'List',context!); return this; } Map toJson() => { 'personal_payments': JsonConverters.toJson(personal_payments,'List',context!), 'other_payments': JsonConverters.toJson(other_payments,'List',context!) }; getTypeName() => "CRMPaymentsDatamartResponse"; TypeContext? context = _ctx; } // @Route("/DynamicsCRM/PaymentsDatamart", "POST") // @Route("/DynamicsCRM/PaymentsDatamart/{regent_id}", "POST") class CRMPaymentsDatamartRequest implements IReturn, IConvertible, IPost { int? regent_id; CRMPaymentsDatamartRequest({this.regent_id}); CRMPaymentsDatamartRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { regent_id = json['regent_id']; return this; } Map toJson() => { 'regent_id': regent_id }; createResponse() => CRMPaymentsDatamartResponse(); getResponseTypeName() => "CRMPaymentsDatamartResponse"; getTypeName() => "CRMPaymentsDatamartRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'CRMPaymentDatamartResponse': TypeInfo(TypeOf.Class, create:() => CRMPaymentDatamartResponse()), 'CRMPaymentsDatamartResponse': TypeInfo(TypeOf.Class, create:() => CRMPaymentsDatamartResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CRMPaymentsDatamartRequest': TypeInfo(TypeOf.Class, create:() => CRMPaymentsDatamartRequest()), });