Activity.fromJsonLd(json: unknown,options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; tracerProvider?: TracerProvider; },): Promise<Activity>
Converts a JSON-LD structure to an object of this type.
optional
options: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; tracerProvider?: TracerProvider; }
The options to use.
documentLoader
: The loader for remote JSON-LD documents.contextLoader
: The loader for remote JSON-LD contexts.tracerProvider
: The OpenTelemetry tracer provider to use. If omitted, the global tracer provider is used.