toJsonLd method
Serialize SchemaHowToDirection to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'HowToDirection',
'afterMedia': convertToJsonLd(
afterMedia, (v) => v is SchemaMediaObject || v is String),
'beforeMedia': convertToJsonLd(
beforeMedia, (v) => v is SchemaMediaObject || v is String),
'duringMedia': convertToJsonLd(
duringMedia, (v) => v is SchemaMediaObject || v is String),
'performTime': convertToJsonLd(performTime),
'prepTime': convertToJsonLd(prepTime),
'supply': convertToJsonLd(
supply, (v) => v is SchemaHowToSupply || v is String),
'tool':
convertToJsonLd(tool, (v) => v is SchemaHowToTool || v is String),
'totalTime': convertToJsonLd(totalTime),
'item': convertToJsonLd(item),
'nextItem': convertToJsonLd(nextItem),
'previousItem': convertToJsonLd(previousItem),
});