/* Options: Date: 2024-11-21 06:25:30 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: LibraryNavTopicsRequest.* //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 TopicItem implements IConvertible { String? id; String? title; bool? isNavItem; bool? isVisible; TopicItem({this.id,this.title,this.isNavItem,this.isVisible}); TopicItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; title = json['title']; isNavItem = json['isNavItem']; isVisible = json['isVisible']; return this; } Map toJson() => { 'id': id, 'title': title, 'isNavItem': isNavItem, 'isVisible': isVisible }; getTypeName() => "TopicItem"; TypeContext? context = _ctx; } class LibraryNavTopic implements IConvertible { String? name; List? topics; LibraryNavTopic({this.name,this.topics}); LibraryNavTopic.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; topics = JsonConverters.fromJson(json['topics'],'List',context!); return this; } Map toJson() => { 'name': name, 'topics': JsonConverters.toJson(topics,'List',context!) }; getTypeName() => "LibraryNavTopic"; TypeContext? context = _ctx; } class LibraryNavTopicsResponse implements IConvertible { List? libraryNavTopics; LibraryNavTopicsResponse({this.libraryNavTopics}); LibraryNavTopicsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { libraryNavTopics = JsonConverters.fromJson(json['libraryNavTopics'],'List',context!); return this; } Map toJson() => { 'libraryNavTopics': JsonConverters.toJson(libraryNavTopics,'List',context!) }; getTypeName() => "LibraryNavTopicsResponse"; TypeContext? context = _ctx; } // @Route("/libraryNavTopics", "GET") class LibraryNavTopicsRequest extends BasicResourceLibraryRequest implements IReturn, IConvertible { bool? digitalFitness; LibraryNavTopicsRequest({this.digitalFitness}); LibraryNavTopicsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); digitalFitness = json['digitalFitness']; return this; } Map toJson() => super.toJson()..addAll({ 'digitalFitness': digitalFitness }); createResponse() => LibraryNavTopicsResponse(); getResponseTypeName() => "LibraryNavTopicsResponse"; getTypeName() => "LibraryNavTopicsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'resourcelibrary.api.ashcompanies.com', types: { 'BasicResourceLibraryRequest': TypeInfo(TypeOf.Class, create:() => BasicResourceLibraryRequest()), 'TopicItem': TypeInfo(TypeOf.Class, create:() => TopicItem()), 'LibraryNavTopic': TypeInfo(TypeOf.Class, create:() => LibraryNavTopic()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'LibraryNavTopicsResponse': TypeInfo(TypeOf.Class, create:() => LibraryNavTopicsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'LibraryNavTopicsRequest': TypeInfo(TypeOf.Class, create:() => LibraryNavTopicsRequest()), });