code: public function equalsTo(MediaTypeInterface $mediaType): ?Decoding
      {
          return collect($this->stack)->first(function (Decoding $decoding) use ($mediaType) {
              return $decoding->equalsTo($mediaType);
          });
      }
docs: Get the decoding that matches the supplied media type.
  
  @param MediaTypeInterface $mediaType
  @return Decoding|null