code: public static function createCustom(...$mediaTypes): self
      {
          $encodings = new self();
          $encodings->stack = collect($mediaTypes)->map(function ($mediaType) {
              return Encoding::custom($mediaType);
          })->all();
  
          return $encodings;
      }
docs: Create encodings that will not encode JSON API content.
  
  @param string|MediaTypeInterface ...$mediaTypes
  @return EncodingList