public function normalize($object, $format = null, array $context = [])
{
$data = new \stdClass();
if (null !== $object->getTitle()) {
$data->{'title'} = $object->getTitle();
}
if (null !== $object->getVersion()) {
$data->{'version'} = $object->getVersion();
}
if (null !== $object->getDescription()) {
$data->{'description'} = $object->getDescription();
}
if (null !== $object->getTermsOfService()) {
$data->{'termsOfService'} = $object->getTermsOfService();
}
if (null !== $object->getContact()) {
$data->{'contact'} = $this->serializer->serialize($object->getContact(), 'raw', $context);
}
if (null !== $object->getLicense()) {
$data->{'license'} = $this->serializer->serialize($object->getLicense(), 'raw', $context);
}
return $data;
}