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