public function getDataFromResource($data, $object = null, $params = [])
{
if ($data[$this->getName() . "__value"] || $data[$this->getName() . "__unit"]) {
return new \Pimcore\Model\Object\Data\QuantityValue($data[$this->getName() . "__value"], $data[$this->getName() . "__unit"]);
}
return;
}