mediaType = $mediaType; return $this; } /** * create object from json * @param mixed $json input */ public function fromJson($json) : bool { if (!parent::fromJson($json)) { return false; } if (array_key_exists('url', $json)) { $this->url = $json['url']; } if (array_key_exists('mediaType', $json)) { $this->mediaType = $json['mediaType']; } return true; } }