toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var maxResults = this.maxResults;
  var startAt = this.startAt;
  var total = this.total;
  var isLast = this.isLast;
  var values = this.values;

  final json = <String, Object?>{};
  if (maxResults != null) {
    json[r'maxResults'] = maxResults;
  }
  if (startAt != null) {
    json[r'startAt'] = startAt;
  }
  if (total != null) {
    json[r'total'] = total;
  }
  json[r'isLast'] = isLast;
  json[r'values'] = values.map((i) => i.toJson()).toList();
  return json;
}