from static method

NTriplesDecoderOptions from(
  1. RdfGraphDecoderOptions options
)

Creates an instance of NTriplesDecoderOptions from generic decoder options.

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

The options parameter contains the generic decoder options to convert. Returns an instance of NTriplesDecoderOptions.

Implementation

static NTriplesDecoderOptions from(RdfGraphDecoderOptions options) =>
    switch (options) {
      NTriplesDecoderOptions _ => options,
      _ => NTriplesDecoderOptions(),
    };