@override Object toJson() => { 'parent': parent, if (batchPredictionJob != null) 'batchPredictionJob': batchPredictionJob!.toJson(), };