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