toJsonLd method
Serialize SchemaHowToSection to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'HowToSection',
'steps': convertToJsonLd(
steps, [SchemaCreativeWork, SchemaItemList, String]),
'aggregateElement': convertToJsonLd(aggregateElement, [SchemaThing]),
'itemListElement': convertToJsonLd(
itemListElement, [SchemaListItem, String, SchemaThing]),
'itemListOrder':
convertToJsonLd(itemListOrder, [SchemaItemListOrderType, String]),
'numberOfItems': convertToJsonLd(numberOfItems, [int]),
'item': convertToJsonLd(item, [SchemaThing]),
'nextItem': convertToJsonLd(nextItem, [SchemaListItem]),
'previousItem': convertToJsonLd(previousItem, [SchemaListItem]),
});