toJson method
Implementation
Map<String, Object?> toJson() {
var histories = this.histories;
var maxResults = this.maxResults;
var startAt = this.startAt;
var total = this.total;
final json = <String, Object?>{};
json[r'histories'] = histories.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;
}