@override Object toJson() => { if (predictions.isNotDefault) 'predictions': [for (final i in predictions) i.toJson()], };