code: public function decodes(string ...$mediaTypes): bool
      {
          if (!$decoding = $this->getDecodingMediaType()) {
              return false;
          }
  
          return collect($mediaTypes)->contains(function ($mediaType, $index) use ($decoding) {
              return $decoding->equalsTo(MediaType::parse($index, $mediaType));
          });
      }
docs: Does the codec decode any of the supplied media types?
  
  @param string ...$mediaTypes
  @return bool