public denormalize ( $data, $class, $format = null, array $context = [] ) | ||
$context | array |
public function denormalize($data, $class, $format = null, array $context = [])
{
$object = new \Joli\Jane\Tests\Expected\Model\Test();
if (property_exists($data, 'string')) {
$object->setString($data->{'string'});
}
return $object;
}