src/Codec/EncodingList.php
public static function createCustom(...$mediaTypes): self
    {
        $encodings = new self();
        $encodings->stack = collect($mediaTypes)->map(function ($mediaType) {
            return Encoding::custom($mediaType);
        })->all();

        return $encodings;
    }
public static function createCustom(...$mediaTypes): self
    {
        $encodings = new self();
        $encodings->stack = collect($mediaTypes)->map(function ($mediaType) {
            return Encoding::custom($mediaType);
        })->all();

        return $encodings;
    }
Create encodings that will not encode JSON API content.

@param string|MediaTypeInterface ...$mediaTypes
@return EncodingList