toJsonLd method
Serialize SchemaProductModel to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'ProductModel',
'predecessorOf': convertToJsonLd(predecessorOf, [SchemaProductModel]),
'successorOf': convertToJsonLd(successorOf, [SchemaProductModel]),
});