/* Options: Date: 2025-04-04 17:51:06 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: FileAttachmentService.GetFileRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class FileAttachmentData implements IConvertible { int? FileAttachmentId; int? BranchId; int? UploadedByUserId; Uint8List? FileData; String? InstanceType; int? InstanceId; String? Filename; int? FileSize; String? MimeType; Uint8List? Thumbnail; FileAttachmentData({this.FileAttachmentId,this.BranchId,this.UploadedByUserId,this.FileData,this.InstanceType,this.InstanceId,this.Filename,this.FileSize,this.MimeType,this.Thumbnail}); FileAttachmentData.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FileAttachmentId = json['FileAttachmentId']; BranchId = json['BranchId']; UploadedByUserId = json['UploadedByUserId']; FileData = JsonConverters.fromJson(json['FileData'],'Uint8List',context!); InstanceType = json['InstanceType']; InstanceId = json['InstanceId']; Filename = json['Filename']; FileSize = json['FileSize']; MimeType = json['MimeType']; Thumbnail = JsonConverters.fromJson(json['Thumbnail'],'Uint8List',context!); return this; } Map toJson() => { 'FileAttachmentId': FileAttachmentId, 'BranchId': BranchId, 'UploadedByUserId': UploadedByUserId, 'FileData': JsonConverters.toJson(FileData,'Uint8List',context!), 'InstanceType': InstanceType, 'InstanceId': InstanceId, 'Filename': Filename, 'FileSize': FileSize, 'MimeType': MimeType, 'Thumbnail': JsonConverters.toJson(Thumbnail,'Uint8List',context!) }; getTypeName() => "FileAttachmentData"; TypeContext? context = _ctx; } // @Route("/api/FileAttachment/GetFile", "POST,GET") class GetFileRequest implements IReturn, IConvertible { int? FileAttachmentId; GetFileRequest({this.FileAttachmentId}); GetFileRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FileAttachmentId = json['FileAttachmentId']; return this; } Map toJson() => { 'FileAttachmentId': FileAttachmentId }; createResponse() => FileAttachmentData(); getResponseTypeName() => "FileAttachmentData"; getTypeName() => "GetFileRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.clubmanagercentral.com', types: { 'FileAttachmentData': TypeInfo(TypeOf.Class, create:() => FileAttachmentData()), 'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)), 'GetFileRequest': TypeInfo(TypeOf.Class, create:() => GetFileRequest()), });