Decodes the body based on the type

Parameters

  • string $body

Returns

mixed

Source

						protected function _decode($body) {
		$media = $this->_classes['media'];
		if ($type = $media::type($this->_type)) {
			$body = $media::decode($this->_type, $body) ?: $body;
		}
		return $body;
	}