GET | /libraryNavTopics | Use to get library topics |
---|
import 'package:servicestack/servicestack.dart';
class BasicResourceLibraryRequest implements IConvertible
{
int? resourceLibraryMemberId;
BasicResourceLibraryRequest({this.resourceLibraryMemberId});
BasicResourceLibraryRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
resourceLibraryMemberId = json['resourceLibraryMemberId'];
return this;
}
Map<String, dynamic> 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<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
title = json['title'];
isNavItem = json['isNavItem'];
isVisible = json['isVisible'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'title': title,
'isNavItem': isNavItem,
'isVisible': isVisible
};
getTypeName() => "TopicItem";
TypeContext? context = _ctx;
}
class LibraryNavTopic implements IConvertible
{
String? name;
List<TopicItem>? topics;
LibraryNavTopic({this.name,this.topics});
LibraryNavTopic.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
name = json['name'];
topics = JsonConverters.fromJson(json['topics'],'List<TopicItem>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'name': name,
'topics': JsonConverters.toJson(topics,'List<TopicItem>',context!)
};
getTypeName() => "LibraryNavTopic";
TypeContext? context = _ctx;
}
class LibraryNavTopicsResponse implements IConvertible
{
List<LibraryNavTopic>? libraryNavTopics;
LibraryNavTopicsResponse({this.libraryNavTopics});
LibraryNavTopicsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
libraryNavTopics = JsonConverters.fromJson(json['libraryNavTopics'],'List<LibraryNavTopic>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'libraryNavTopics': JsonConverters.toJson(libraryNavTopics,'List<LibraryNavTopic>',context!)
};
getTypeName() => "LibraryNavTopicsResponse";
TypeContext? context = _ctx;
}
class LibraryNavTopicsRequest extends BasicResourceLibraryRequest implements IConvertible
{
bool? digitalFitness;
LibraryNavTopicsRequest({this.digitalFitness});
LibraryNavTopicsRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
digitalFitness = json['digitalFitness'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'digitalFitness': digitalFitness
});
getTypeName() => "LibraryNavTopicsRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'resourcelibrary.api.ashcompanies.com', types: <String, TypeInfo> {
'BasicResourceLibraryRequest': TypeInfo(TypeOf.Class, create:() => BasicResourceLibraryRequest()),
'TopicItem': TypeInfo(TypeOf.Class, create:() => TopicItem()),
'LibraryNavTopic': TypeInfo(TypeOf.Class, create:() => LibraryNavTopic()),
'List<TopicItem>': TypeInfo(TypeOf.Class, create:() => <TopicItem>[]),
'LibraryNavTopicsResponse': TypeInfo(TypeOf.Class, create:() => LibraryNavTopicsResponse()),
'List<LibraryNavTopic>': TypeInfo(TypeOf.Class, create:() => <LibraryNavTopic>[]),
'LibraryNavTopicsRequest': TypeInfo(TypeOf.Class, create:() => LibraryNavTopicsRequest()),
});
Dart LibraryNavTopicsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /libraryNavTopics HTTP/1.1 Host: resourcelibrary.api.ashcompanies.com Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"libraryNavTopics":null}