use Shopware\Core\Framework\Log\Package;
/**
* @internal
*/
#[Package('core')]
class ConfigJsonFieldSerializer extends JsonFieldSerializer
{ public function encode(Field
$field, EntityExistence
$existence, KeyValuePair
$data, WriteParameterBag
$parameters): \Generator
{ if (!
$field instanceof ConfigJsonField
) { throw DataAbstractionLayerException::
invalidSerializerField(ConfigJsonField::
class,
$field);
} $wrapped =
[ConfigJsonField::STORAGE_KEY =>
$data->
getValue()];
$data->
setValue($wrapped);
return parent::
encode($field,
$existence,
$data,
$parameters);
} public function decode(Field
$field, mixed
$value): mixed
{ if (!
$field instanceof ConfigJsonField
) {