from static method

NTriplesEncoderOptions from(
  1. RdfGraphEncoderOptions options
)

Creates an instance of NTriplesEncoderOptions from generic encoder options.

This factory method ensures that when generic RdfGraphEncoderOptions are provided to a method expecting N-Triples-specific options, they are properly converted.

The options parameter contains the generic encoder options to convert. Returns an instance of NTriplesEncoderOptions.

Implementation

static NTriplesEncoderOptions from(RdfGraphEncoderOptions options) =>
    switch (options) {
      NTriplesEncoderOptions _ => options,
      _ => NTriplesEncoderOptions(),
    };