/* Options: Date: 2025-04-04 17:19:18 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.clubmanagercentral.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: FindFileAttachment.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class FileAttachmentInstance implements IConvertible { int? FileAttachmentId; Uint8List? FileData; String? MimeType; int? InstanceId; String? InstanceType; int? UploadedByUserId; DateTime? UploadedDate; double? FileSize; String? Filename; Uint8List? Thumbnail; String? PublicKey; FileAttachmentInstance({this.FileAttachmentId,this.FileData,this.MimeType,this.InstanceId,this.InstanceType,this.UploadedByUserId,this.UploadedDate,this.FileSize,this.Filename,this.Thumbnail,this.PublicKey}); FileAttachmentInstance.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FileAttachmentId = json['FileAttachmentId']; FileData = JsonConverters.fromJson(json['FileData'],'Uint8List',context!); MimeType = json['MimeType']; InstanceId = json['InstanceId']; InstanceType = json['InstanceType']; UploadedByUserId = json['UploadedByUserId']; UploadedDate = JsonConverters.fromJson(json['UploadedDate'],'DateTime',context!); FileSize = JsonConverters.toDouble(json['FileSize']); Filename = json['Filename']; Thumbnail = JsonConverters.fromJson(json['Thumbnail'],'Uint8List',context!); PublicKey = json['PublicKey']; return this; } Map toJson() => { 'FileAttachmentId': FileAttachmentId, 'FileData': JsonConverters.toJson(FileData,'Uint8List',context!), 'MimeType': MimeType, 'InstanceId': InstanceId, 'InstanceType': InstanceType, 'UploadedByUserId': UploadedByUserId, 'UploadedDate': JsonConverters.toJson(UploadedDate,'DateTime',context!), 'FileSize': FileSize, 'Filename': Filename, 'Thumbnail': JsonConverters.toJson(Thumbnail,'Uint8List',context!), 'PublicKey': PublicKey }; getTypeName() => "FileAttachmentInstance"; TypeContext? context = _ctx; } // @Route("/api/Query/FileAttachment") // @AutoQueryViewer(Description="", IconUrl="octicon:database", Title="FileAttachment") class FindFileAttachment extends QueryDb implements IReturn>, IConvertible { FindFileAttachment(); FindFileAttachment.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "FindFileAttachment"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.clubmanagercentral.com', types: { 'FileAttachmentInstance': TypeInfo(TypeOf.Class, create:() => FileAttachmentInstance()), 'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'FindFileAttachment': TypeInfo(TypeOf.Class, create:() => FindFileAttachment()), 'List': TypeInfo(TypeOf.Class, create:() => []), });