/* Options: Date: 2024-12-29 03:14:30 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: CRMSharepointFileUploadRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class CRMSharepointFileResponse implements IConvertible { ResponseStatus? responseStatus; String? file_base64; String? filename; String? item_id; int? filesize; String? mimetype; String? sharepoint_url; CRMSharepointFileResponse({this.responseStatus,this.file_base64,this.filename,this.item_id,this.filesize,this.mimetype,this.sharepoint_url}); CRMSharepointFileResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); file_base64 = json['file_base64']; filename = json['filename']; item_id = json['item_id']; filesize = json['filesize']; mimetype = json['mimetype']; sharepoint_url = json['sharepoint_url']; return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'file_base64': file_base64, 'filename': filename, 'item_id': item_id, 'filesize': filesize, 'mimetype': mimetype, 'sharepoint_url': sharepoint_url }; getTypeName() => "CRMSharepointFileResponse"; TypeContext? context = _ctx; } // @Route("/DynamicsCRM/Sharepoint/File/Upload", "POST") class CRMSharepointFileUploadRequest implements IReturn, IConvertible, IPost { String? filename; String? file_base64; bool? is_invoice; CRMSharepointFileUploadRequest({this.filename,this.file_base64,this.is_invoice}); CRMSharepointFileUploadRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { filename = json['filename']; file_base64 = json['file_base64']; is_invoice = json['is_invoice']; return this; } Map toJson() => { 'filename': filename, 'file_base64': file_base64, 'is_invoice': is_invoice }; createResponse() => CRMSharepointFileResponse(); getResponseTypeName() => "CRMSharepointFileResponse"; getTypeName() => "CRMSharepointFileUploadRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'CRMSharepointFileResponse': TypeInfo(TypeOf.Class, create:() => CRMSharepointFileResponse()), 'CRMSharepointFileUploadRequest': TypeInfo(TypeOf.Class, create:() => CRMSharepointFileUploadRequest()), });