/* Options: Date: 2024-12-22 22:01:04 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: QueryFileSystemItems.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; enum FileAccessType { Public, Team, Private, } class FileSystemFile implements IFile, IConvertible { int? id; String? fileName; String? filePath; String? contentType; int? contentLength; // @References(typeof(FileSystemItem)) int? fileSystemItemId; FileSystemFile({this.id,this.fileName,this.filePath,this.contentType,this.contentLength,this.fileSystemItemId}); FileSystemFile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; fileName = json['fileName']; filePath = json['filePath']; contentType = json['contentType']; contentLength = json['contentLength']; fileSystemItemId = json['fileSystemItemId']; return this; } Map toJson() => { 'id': id, 'fileName': fileName, 'filePath': filePath, 'contentType': contentType, 'contentLength': contentLength, 'fileSystemItemId': fileSystemItemId }; getTypeName() => "FileSystemFile"; TypeContext? context = _ctx; } class FileSystemItem implements IFileItem, IConvertible { int? id; FileAccessType? fileAccessType; FileSystemFile? file; String? appUserId; FileSystemItem({this.id,this.fileAccessType,this.file,this.appUserId}); FileSystemItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; fileAccessType = JsonConverters.fromJson(json['fileAccessType'],'FileAccessType',context!); file = JsonConverters.fromJson(json['file'],'FileSystemFile',context!); appUserId = json['appUserId']; return this; } Map toJson() => { 'id': id, 'fileAccessType': JsonConverters.toJson(fileAccessType,'FileAccessType',context!), 'file': JsonConverters.toJson(file,'FileSystemFile',context!), 'appUserId': appUserId }; getTypeName() => "FileSystemItem"; TypeContext? context = _ctx; } abstract class IFileItem { FileAccessType? fileAccessType; } abstract class IFile { int? id; String? fileName; String? filePath; String? contentType; int? contentLength; } class QueryFileSystemItems extends QueryDb implements IReturn>, IConvertible, IGet { int? appUserId; FileAccessType? fileAccessType; QueryFileSystemItems({this.appUserId,this.fileAccessType}); QueryFileSystemItems.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); appUserId = json['appUserId']; fileAccessType = JsonConverters.fromJson(json['fileAccessType'],'FileAccessType',context!); return this; } Map toJson() => super.toJson()..addAll({ 'appUserId': appUserId, 'fileAccessType': JsonConverters.toJson(fileAccessType,'FileAccessType',context!) }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "QueryFileSystemItems"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'FileAccessType': TypeInfo(TypeOf.Enum, enumValues:FileAccessType.values), 'FileSystemFile': TypeInfo(TypeOf.Class, create:() => FileSystemFile()), 'FileSystemItem': TypeInfo(TypeOf.Class, create:() => FileSystemItem()), 'IFileItem': TypeInfo(TypeOf.Interface), 'IFile': TypeInfo(TypeOf.Interface), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'QueryFileSystemItems': TypeInfo(TypeOf.Class, create:() => QueryFileSystemItems()), 'List': TypeInfo(TypeOf.Class, create:() => []), });