toJson method
Implementation
Map<String, Object?> toJson() {
var comments = this.comments;
var maxResults = this.maxResults;
var startAt = this.startAt;
var total = this.total;
final json = <String, Object?>{};
json[r'comments'] = comments.map((i) => i.toJson()).toList();
if (maxResults != null) {
json[r'maxResults'] = maxResults;
}
if (startAt != null) {
json[r'startAt'] = startAt;
}
if (total != null) {
json[r'total'] = total;
}
return json;
}