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