from static method
- RdfGraphDecoderOptions options
Creates TurtleDecoderOptions from generic RdfGraphDecoderOptions
This factory method enables proper type conversion when using the generic codec/decoder API with Turtle-specific options.
Parameters:
options
The options object to convert, which may or may not be already a TurtleDecoderOptions instance.
Returns:
- The input as-is if it's already a TurtleDecoderOptions instance, or a new instance with default settings otherwise.
Implementation
static TurtleDecoderOptions from(RdfGraphDecoderOptions options) =>
switch (options) {
TurtleDecoderOptions _ => options,
_ => TurtleDecoderOptions(),
};