toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
_json[r'order'] = order;
_json[r'posts'] = posts;
if (nextPostId != null) {
_json[r'next_post_id'] = nextPostId;
}
if (prevPostId != null) {
_json[r'prev_post_id'] = prevPostId;
}
if (hasNext != null) {
_json[r'has_next'] = hasNext;
}
return _json;
}