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