private array
$classes =
[];
/**
* {@inheritdoc}
*
* @return array<string, mixed>
*/
public function normalize(mixed
$object, ?string
$format = null, array
$context =
[]) { $encoder =
new JsonEncode();
return (new JsonDecode([JsonDecode::ASSOCIATIVE => true
]))->
decode($encoder->
encode($object, 'json'
), 'json'
);
} /**
* {@inheritdoc}
*
* @param array<string, mixed> $context
*/
public function supportsNormalization(mixed
$data, ?string
$format = null, array
$context =
[]): bool
{ return $data instanceof Struct;
}