/* Options: Date: 2024-11-21 05:57:37 Version: 6.00 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://resourcelibrary.api.ashcompanies.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CategoriesRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class BasicResourceLibraryRequest implements IConvertible { int? resourceLibraryMemberId; BasicResourceLibraryRequest({this.resourceLibraryMemberId}); BasicResourceLibraryRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { resourceLibraryMemberId = json['resourceLibraryMemberId']; return this; } Map toJson() => { 'resourceLibraryMemberId': resourceLibraryMemberId }; getTypeName() => "BasicResourceLibraryRequest"; TypeContext? context = _ctx; } class Category implements IConvertible { String? id; List? subtopicItems; List? resourceItems; String? title; String? isVisible; int? resourceCount; Category({this.id,this.subtopicItems,this.resourceItems,this.title,this.isVisible,this.resourceCount}); Category.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; subtopicItems = JsonConverters.fromJson(json['subtopicItems'],'List',context!); resourceItems = JsonConverters.fromJson(json['resourceItems'],'List',context!); title = json['title']; isVisible = json['isVisible']; resourceCount = json['resourceCount']; return this; } Map toJson() => { 'id': id, 'subtopicItems': JsonConverters.toJson(subtopicItems,'List',context!), 'resourceItems': JsonConverters.toJson(resourceItems,'List',context!), 'title': title, 'isVisible': isVisible, 'resourceCount': resourceCount }; getTypeName() => "Category"; TypeContext? context = _ctx; } class CategoriesResponse implements IConvertible { List? categories; CategoriesResponse({this.categories}); CategoriesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { categories = JsonConverters.fromJson(json['categories'],'List',context!); return this; } Map toJson() => { 'categories': JsonConverters.toJson(categories,'List',context!) }; getTypeName() => "CategoriesResponse"; TypeContext? context = _ctx; } // @Route("/categories", "GET") class CategoriesRequest extends BasicResourceLibraryRequest implements IReturn, IConvertible { bool? includeCompletionStatus; bool? includeSubtopicItems; bool? includeResourceItems; CategoriesRequest({this.includeCompletionStatus,this.includeSubtopicItems,this.includeResourceItems}); CategoriesRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); includeCompletionStatus = json['includeCompletionStatus']; includeSubtopicItems = json['includeSubtopicItems']; includeResourceItems = json['includeResourceItems']; return this; } Map toJson() => super.toJson()..addAll({ 'includeCompletionStatus': includeCompletionStatus, 'includeSubtopicItems': includeSubtopicItems, 'includeResourceItems': includeResourceItems }); createResponse() => CategoriesResponse(); getResponseTypeName() => "CategoriesResponse"; getTypeName() => "CategoriesRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'resourcelibrary.api.ashcompanies.com', types: { 'BasicResourceLibraryRequest': TypeInfo(TypeOf.Class, create:() => BasicResourceLibraryRequest()), 'Category': TypeInfo(TypeOf.Class, create:() => Category()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SubTopic': TypeInfo(TypeOf.Class, create:() => SubTopic()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ResourceItem': TypeInfo(TypeOf.Class, create:() => ResourceItem()), 'CategoriesResponse': TypeInfo(TypeOf.Class, create:() => CategoriesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CategoriesRequest': TypeInfo(TypeOf.Class, create:() => CategoriesRequest()), });