/* Options: Date: 2024-12-03 09:23:01 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: TopicListRequest.* //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 TopicListResponse implements IConvertible { List? topicsList; TopicListResponse({this.topicsList}); TopicListResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { topicsList = JsonConverters.fromJson(json['topicsList'],'List',context!); return this; } Map toJson() => { 'topicsList': JsonConverters.toJson(topicsList,'List',context!) }; getTypeName() => "TopicListResponse"; TypeContext? context = _ctx; } // @Route("/topicsList", "GET") class TopicListRequest extends BasicResourceLibraryRequest implements IReturn, IConvertible { bool? digitalFitness; TopicListRequest({this.digitalFitness}); TopicListRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); digitalFitness = json['digitalFitness']; return this; } Map toJson() => super.toJson()..addAll({ 'digitalFitness': digitalFitness }); createResponse() => TopicListResponse(); getResponseTypeName() => "TopicListResponse"; getTypeName() => "TopicListRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'resourcelibrary.api.ashcompanies.com', types: { 'BasicResourceLibraryRequest': TypeInfo(TypeOf.Class, create:() => BasicResourceLibraryRequest()), 'TopicItem': TypeInfo(TypeOf.Class, create:() => TopicItem()), 'TopicListResponse': TypeInfo(TypeOf.Class, create:() => TopicListResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'TopicListRequest': TypeInfo(TypeOf.Class, create:() => TopicListRequest()), });