/* Options: Date: 2025-12-06 07:08:46 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: RecordAttachmentRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Attachment implements IConvertible { String? AttachmentId; String? TableName; String? FieldName; int? RecordId; String? AttachmentName; String? MimeType; Uint8List? AttachmentData = []; double? FileSizeInKB; DateTime? CreatedDate; String? CreatedBy; bool? NeedsOCR; DateTime? OCRDate; bool? IsSecurities; String? AWSKey; String? PresignedUrl; Attachment({this.AttachmentId,this.TableName,this.FieldName,this.RecordId,this.AttachmentName,this.MimeType,this.AttachmentData,this.FileSizeInKB,this.CreatedDate,this.CreatedBy,this.NeedsOCR,this.OCRDate,this.IsSecurities,this.AWSKey,this.PresignedUrl}); Attachment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AttachmentId = json['AttachmentId']; TableName = json['TableName']; FieldName = json['FieldName']; RecordId = json['RecordId']; AttachmentName = json['AttachmentName']; MimeType = json['MimeType']; AttachmentData = JsonConverters.fromJson(json['AttachmentData'],'Uint8List',context!); FileSizeInKB = JsonConverters.toDouble(json['FileSizeInKB']); CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); CreatedBy = json['CreatedBy']; NeedsOCR = json['NeedsOCR']; OCRDate = JsonConverters.fromJson(json['OCRDate'],'DateTime',context!); IsSecurities = json['IsSecurities']; AWSKey = json['AWSKey']; PresignedUrl = json['PresignedUrl']; return this; } Map toJson() => { 'AttachmentId': AttachmentId, 'TableName': TableName, 'FieldName': FieldName, 'RecordId': RecordId, 'AttachmentName': AttachmentName, 'MimeType': MimeType, 'AttachmentData': JsonConverters.toJson(AttachmentData,'Uint8List',context!), 'FileSizeInKB': FileSizeInKB, 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!), 'CreatedBy': CreatedBy, 'NeedsOCR': NeedsOCR, 'OCRDate': JsonConverters.toJson(OCRDate,'DateTime',context!), 'IsSecurities': IsSecurities, 'AWSKey': AWSKey, 'PresignedUrl': PresignedUrl }; getTypeName() => "Attachment"; TypeContext? context = _ctx; } class AttachmentResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Attachment = []; AttachmentResponse({this.ResponseStatus,this.Attachment}); AttachmentResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Attachment = JsonConverters.fromJson(json['Attachment'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Attachment': JsonConverters.toJson(Attachment,'List',context!) }; getTypeName() => "AttachmentResponse"; TypeContext? context = _ctx; } // @Route("/v1/Attachment/{TableName}/{FieldName}/{RecordId}", "GET,OPTIONS") class RecordAttachmentRequest implements IReturn, IConvertible, IGet { String? TableName; String? FieldName; int? RecordId; RecordAttachmentRequest({this.TableName,this.FieldName,this.RecordId}); RecordAttachmentRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TableName = json['TableName']; FieldName = json['FieldName']; RecordId = json['RecordId']; return this; } Map toJson() => { 'TableName': TableName, 'FieldName': FieldName, 'RecordId': RecordId }; createResponse() => AttachmentResponse(); getResponseTypeName() => "AttachmentResponse"; getTypeName() => "RecordAttachmentRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'Attachment': TypeInfo(TypeOf.Class, create:() => Attachment()), 'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)), 'AttachmentResponse': TypeInfo(TypeOf.Class, create:() => AttachmentResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'RecordAttachmentRequest': TypeInfo(TypeOf.Class, create:() => RecordAttachmentRequest()), });