Deserializes data into the given type.
mixed $data:
string $type:
string $format:
array $context:
object
Overrides SerializerInterface::deserialize
public final function deserialize($data, $type, $format, array $context = array()) {
if (!$this
->supportsDecoding($format)) {
throw new UnexpectedValueException(sprintf('Deserialization for the format %s is not supported', $format));
}
$data = $this
->decode($data, $format, $context);
return $this
->denormalize($data, $type, $format, $context);
}