/* Options: Date: 2024-12-29 03:54:44 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: CRMDonationNoteRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class CRMNoteResponse implements IConvertible { String? subject; String? text; String? owner_first_name; String? owner_last_name; String? file_base64; String? filename; int? filesize; String? mimetype; DateTime? added_date; CRMNoteResponse({this.subject,this.text,this.owner_first_name,this.owner_last_name,this.file_base64,this.filename,this.filesize,this.mimetype,this.added_date}); CRMNoteResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { subject = json['subject']; text = json['text']; owner_first_name = json['owner_first_name']; owner_last_name = json['owner_last_name']; file_base64 = json['file_base64']; filename = json['filename']; filesize = json['filesize']; mimetype = json['mimetype']; added_date = JsonConverters.fromJson(json['added_date'],'DateTime',context!); return this; } Map toJson() => { 'subject': subject, 'text': text, 'owner_first_name': owner_first_name, 'owner_last_name': owner_last_name, 'file_base64': file_base64, 'filename': filename, 'filesize': filesize, 'mimetype': mimetype, 'added_date': JsonConverters.toJson(added_date,'DateTime',context!) }; getTypeName() => "CRMNoteResponse"; TypeContext? context = _ctx; } class CRMDonationNoteResponse extends CRMNoteResponse implements IConvertible { String? first_name; String? last_name; CRMDonationNoteResponse({this.first_name,this.last_name}); CRMDonationNoteResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); first_name = json['first_name']; last_name = json['last_name']; return this; } Map toJson() => super.toJson()..addAll({ 'first_name': first_name, 'last_name': last_name }); getTypeName() => "CRMDonationNoteResponse"; TypeContext? context = _ctx; } // @Route("/DynamicsCRM/Donation/{guid}/Note", "POST") class CRMDonationNoteRequest implements IReturn, IConvertible, IPost { String? guid; CRMDonationNoteRequest({this.guid}); CRMDonationNoteRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { guid = json['guid']; return this; } Map toJson() => { 'guid': guid }; createResponse() => CRMDonationNoteResponse(); getResponseTypeName() => "CRMDonationNoteResponse"; getTypeName() => "CRMDonationNoteRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'CRMNoteResponse': TypeInfo(TypeOf.Class, create:() => CRMNoteResponse()), 'CRMDonationNoteResponse': TypeInfo(TypeOf.Class, create:() => CRMDonationNoteResponse()), 'CRMDonationNoteRequest': TypeInfo(TypeOf.Class, create:() => CRMDonationNoteRequest()), });