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