location = new Location(); } /** * {@inheritdoc} */ public function jsonSerialize(int $option = 0) { return $this->toArray(); } /** * {@inheritdoc} */ public function toArray() : array { return [ 'recipient' => $this->recipient, 'fao' => $this->fao, 'location' => $this->location->toArray(), ]; } }