copyWith method

JsonLdGraphDecoderOptions copyWith({
  1. NamedGraphHandling? namedGraphHandling,
  2. NamedGraphLogLevel? logLevel,
  3. JsonLdContextDocumentProvider? contextDocumentProvider,
  4. String? baseUri,
  5. JsonValue? expandContext,
  6. RdfDirection? rdfDirection,
  7. JsonLdProcessingMode? processingMode,
  8. bool? skipInvalidRdfTerms,
})

Creates a copy of this JsonLdGraphDecoderOptions with the given fields replaced by new values.

Implementation

JsonLdGraphDecoderOptions copyWith({
  NamedGraphHandling? namedGraphHandling,
  NamedGraphLogLevel? logLevel,
  JsonLdContextDocumentProvider? contextDocumentProvider,
  String? baseUri,
  JsonValue? expandContext,
  RdfDirection? rdfDirection,
  JsonLdProcessingMode? processingMode,
  bool? skipInvalidRdfTerms,
}) {
  return JsonLdGraphDecoderOptions(
    namedGraphHandling: namedGraphHandling ?? this.namedGraphHandling,
    logLevel: logLevel ?? this.logLevel,
    contextDocumentProvider: contextDocumentProvider ?? this.contextDocumentProvider,
    baseUri: baseUri ?? this.baseUri,
    expandContext: expandContext ?? this.expandContext,
    rdfDirection: rdfDirection ?? this.rdfDirection,
    processingMode: processingMode ?? this.processingMode,
    skipInvalidRdfTerms: skipInvalidRdfTerms ?? this.skipInvalidRdfTerms,
  );
}