public function isJsonData() { return in_array($this->getMediaType(), [self::$jsonDataMediaTypes]); }