toJson method

Map<String, Object?> toJson()

Implementation

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

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