JsonLdOptions constructor

JsonLdOptions({
  1. String? base,
  2. bool? compactArrays,
  3. bool? compactToRelative,
  4. LoadDocumentCallback? documentLoader,
  5. dynamic expandContext,
  6. bool? extractAllScripts,
  7. bool? frameExpansion,
  8. bool? ordered,
  9. String? processingMode,
  10. bool? produceGeneralizedRdf,
  11. String? rdfDirection,
  12. bool? useNativeTypes,
  13. bool? useRdfType,
})

Implementation

factory JsonLdOptions(
        {String? base,
        bool? compactArrays,
        bool? compactToRelative,
        LoadDocumentCallback? documentLoader,
        dynamic expandContext,
        bool? extractAllScripts,
        bool? frameExpansion,
        bool? ordered,
        String? processingMode,
        bool? produceGeneralizedRdf,
        String? rdfDirection,
        bool? useNativeTypes,
        bool? useRdfType}) =>
    JsonLdOptions._(
        base: base ?? undefined,
        compactArrays: compactArrays ?? true,
        compactToRelative: compactToRelative ?? true,
        documentLoader: documentLoader ?? undefined,
        expandContext: expandContext ?? undefined,
        extractAllScripts: extractAllScripts ?? false,
        frameExpansion: frameExpansion ?? false,
        ordered: ordered ?? false,
        processingMode: processingMode ?? 'json-ld-1.1',
        produceGeneralizedRdf: produceGeneralizedRdf ?? true,
        rdfDirection: rdfDirection ?? undefined,
        useNativeTypes: useNativeTypes ?? false,
        useRdfType: useRdfType ?? false);