toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var results = this.results;
  var size = this.size;

  final json = <String, Object?>{};
  json[r'results'] = results.map((i) => i.toJson()).toList();
  json[r'size'] = size;
  return json;
}