protected static function decodeAttributes($attributes)
{
foreach ($attributes as &$attribute) {
if (is_array($attribute)) {
$attribute['value'] = is_bool($attribute['value']) ? $attribute['value'] : static::decodeValue($attribute['value']);
continue;
}
$attribute = static::decodeValue($attribute);
}
return $attributes;
}