forked from loafle/openapi-generator-original
parent
a5384d42b4
commit
0c5142a6f6
@ -52,7 +52,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}
|
||||
*/
|
||||
public function getSerialized{{nameInPascalCase}}(): string|null
|
||||
{
|
||||
return $this->{{name}}?->value ? (string) $this->{{name}}->value : null;
|
||||
return !is_null($this->{{name}}?->value) ? (string) $this->{{name}}->value : null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user