toJson method
Implementation
Map<String, Object?> toJson() {
var lastPage = this.lastPage;
var nextPage = this.nextPage;
var self = this.self;
var since = this.since;
var until = this.until;
var values = this.values;
final json = <String, Object?>{};
json[r'lastPage'] = lastPage;
if (nextPage != null) {
json[r'nextPage'] = nextPage;
}
if (self != null) {
json[r'self'] = self;
}
if (since != null) {
json[r'since'] = since;
}
if (until != null) {
json[r'until'] = until;
}
json[r'values'] = values.map((i) => i.toJson()).toList();
return json;
}