toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  if (status != null) {
    data['status'] = status;
  }
  if (predictions != null) {
    data['predictions'] = predictions?.map((data) => data.toJson()).toList();
  }

  return data;
}