toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  final nextBatch = this.nextBatch;
  final order = this.order;
  final results = this.results;
  return {
    if (nextBatch != null) 'next_batch': nextBatch,
    if (order != null) 'order': order,
    if (results != null) 'results': results.map((v) => v).toList(),
  };
}