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