toJsonLd method
Serialize SchemaHowTo to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'HowTo',
'estimatedCost':
convertToJsonLd(estimatedCost, [SchemaMonetaryAmount, String]),
'performTime': convertToJsonLd(performTime, [SchemaDuration]),
'prepTime': convertToJsonLd(prepTime, [SchemaDuration]),
'step': convertToJsonLd(step,
[SchemaCreativeWork, SchemaHowToSection, SchemaHowToStep, String]),
'steps': convertToJsonLd(
steps, [SchemaCreativeWork, SchemaItemList, String]),
'supply': convertToJsonLd(supply, [SchemaHowToSupply, String]),
'tool': convertToJsonLd(tool, [SchemaHowToTool, String]),
'totalTime': convertToJsonLd(totalTime, [SchemaDuration]),
'yield': convertToJsonLd(yield, [SchemaQuantitativeValue, String]),
});