/* Options: Date: 2024-11-21 04:03:29 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: SubTopicsRequest.* //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 SubTopic implements IConvertible { String? id; String? title; int? resourceCount; List? resourceItems; SubTopic({this.id,this.title,this.resourceCount,this.resourceItems}); SubTopic.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; title = json['title']; resourceCount = json['resourceCount']; resourceItems = JsonConverters.fromJson(json['resourceItems'],'List',context!); return this; } Map toJson() => { 'id': id, 'title': title, 'resourceCount': resourceCount, 'resourceItems': JsonConverters.toJson(resourceItems,'List',context!) }; getTypeName() => "SubTopic"; TypeContext? context = _ctx; } class SubTopicsResponse implements IConvertible { List? subTopics; SubTopicsResponse({this.subTopics}); SubTopicsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { subTopics = JsonConverters.fromJson(json['subTopics'],'List',context!); return this; } Map toJson() => { 'subTopics': JsonConverters.toJson(subTopics,'List',context!) }; getTypeName() => "SubTopicsResponse"; TypeContext? context = _ctx; } // @Route("/subtopicItems", "GET") class SubTopicsRequest extends BasicResourceLibraryRequest implements IReturn, IConvertible { bool? includeCompletionStatus; /** * Set it to true if the subtopics being requested belogs to digital fitness. Don't set it if unsure. */ // @ApiMember(Description="Set it to true if the subtopics being requested belogs to digital fitness. Don't set it if unsure.") bool? digitalFitness; SubTopicsRequest({this.includeCompletionStatus,this.digitalFitness}); SubTopicsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); includeCompletionStatus = json['includeCompletionStatus']; digitalFitness = json['digitalFitness']; return this; } Map toJson() => super.toJson()..addAll({ 'includeCompletionStatus': includeCompletionStatus, 'digitalFitness': digitalFitness }); createResponse() => SubTopicsResponse(); getResponseTypeName() => "SubTopicsResponse"; getTypeName() => "SubTopicsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'resourcelibrary.api.ashcompanies.com', types: { 'BasicResourceLibraryRequest': TypeInfo(TypeOf.Class, create:() => BasicResourceLibraryRequest()), 'SubTopic': TypeInfo(TypeOf.Class, create:() => SubTopic()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ResourceItem': TypeInfo(TypeOf.Class, create:() => ResourceItem()), 'SubTopicsResponse': TypeInfo(TypeOf.Class, create:() => SubTopicsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SubTopicsRequest': TypeInfo(TypeOf.Class, create:() => SubTopicsRequest()), });