toJson method

Json toJson()

Converts the instance to a JSON map.

Implementation

Json toJson() {
  return {
    'results': results.map((detail) => detail.toJson()).toList(),
  };
}