/* Options: Date: 2025-08-05 02:04:02 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://www.asg.com.au/RestApi //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: FilesGetRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class FilesItemViewModel implements IConvertible { String? Name; bool? IsFolder; bool? HasChildren; FilesItemViewModel({this.Name,this.IsFolder,this.HasChildren}); FilesItemViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; IsFolder = json['IsFolder']; HasChildren = json['HasChildren']; return this; } Map toJson() => { 'Name': Name, 'IsFolder': IsFolder, 'HasChildren': HasChildren }; getTypeName() => "FilesItemViewModel"; TypeContext? context = _ctx; } class FilesViewModel implements IConvertible { List? Items; String? Error; FilesViewModel({this.Items,this.Error}); FilesViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Items = JsonConverters.fromJson(json['Items'],'List',context!); Error = json['Error']; return this; } Map toJson() => { 'Items': JsonConverters.toJson(Items,'List',context!), 'Error': Error }; getTypeName() => "FilesViewModel"; TypeContext? context = _ctx; } // @Route("/files-api", "GET") class FilesGetRequest implements IReturn, IConvertible, IGet { String? Path; String? Extension; int? Skip; int? Take; FilesGetRequest({this.Path,this.Extension,this.Skip,this.Take}); FilesGetRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Path = json['Path']; Extension = json['Extension']; Skip = json['Skip']; Take = json['Take']; return this; } Map toJson() => { 'Path': Path, 'Extension': Extension, 'Skip': Skip, 'Take': Take }; createResponse() => FilesViewModel(); getResponseTypeName() => "FilesViewModel"; getTypeName() => "FilesGetRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: { 'FilesItemViewModel': TypeInfo(TypeOf.Class, create:() => FilesItemViewModel()), 'FilesViewModel': TypeInfo(TypeOf.Class, create:() => FilesViewModel()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FilesGetRequest': TypeInfo(TypeOf.Class, create:() => FilesGetRequest()), });