withOptions method
- RdfGraphEncoderOptions? encoder,
- RdfGraphDecoderOptions? decoder,
override
Creates a new instance with the specified options
Returns a new auto-detecting codec with the given configuration options, while maintaining the original registry and default codec associations.
The encoder
parameter contains optional encoder options to use.
The decoder
parameter contains optional decoder options to use.
Returns a new AutoDetectingGraphCodec instance with the specified options.
Implementation
@override
RdfGraphCodec withOptions({
RdfGraphEncoderOptions? encoder,
RdfGraphDecoderOptions? decoder,
}) =>
AutoDetectingGraphCodec(
defaultCodec: _defaultCodec,
registry: _registry,
encoderOptions: encoder ?? _encoderOptions,
decoderOptions: decoder ?? _decoderOptions,
);