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