JsonLdEncoderOptions constructor
Creates a new JSON-LD encoder options object
customPrefixes
A map of prefix to namespace URI pairs that will be used
in the JSON-LD @context. These prefixes take precedence over standard prefixes
if there are conflicts.
generateMissingPrefixes
When true (default), the encoder will automatically
generate prefix declarations for IRIs that don't have a matching prefix.
includeBaseDeclaration
Whether to include base URI declarations in the output.
Defaults to true if not provided.
Implementation
const JsonLdEncoderOptions({
Map<String, String> customPrefixes = const {},
bool generateMissingPrefixes = true,
bool includeBaseDeclaration = true,
}) : generateMissingPrefixes = generateMissingPrefixes,
includeBaseDeclaration = includeBaseDeclaration,
super(
customPrefixes: customPrefixes,
);