public function toHash(SPIValue $value)
{
if ($this->isEmptyValue($value)) {
return null;
}
$hash = parent::toHash($value);
$hash['hasController'] = $value->hasController;
$hash['autoplay'] = $value->autoplay;
$hash['loop'] = $value->loop;
$hash['width'] = $value->width;
$hash['height'] = $value->height;
return $hash;
}