public function denormalize($data, $class, $format = null, array $context = [])
 {
     $object = new \Joli\Jane\OpenApi\Tests\Expected\Model\ObjectProperty();
     if (property_exists($data, 'stringProperty')) {
         $object->setStringProperty($data->{'stringProperty'});
     }
     return $object;
 }
 public function denormalize($data, $class, $format = null, array $context = [])
 {
     if (empty($data)) {
         return null;
     }
     if (isset($data->{'$ref'})) {
         return new Reference($data->{'$ref'}, $context['rootSchema'] ?: null);
     }
     $object = new \Joli\Jane\OpenApi\Tests\Expected\Model\ObjectProperty();
     if (!isset($context['rootSchema'])) {
         $context['rootSchema'] = $object;
     }
     if (isset($data->{'stringProperty'})) {
         $object->setStringProperty($data->{'stringProperty'});
     }
     return $object;
 }