public function deserialize($serializedValue)
{
if (null === $serializedValue && $this->isNullable()) {
return $this->default === null ? null : $this->default;
}
if (!is_string($serializedValue)) {
throw InvalidArgumentException::expected('string', $serializedValue);
}
return (double) $serializedValue;
}