toJsonLd method
Serialize SchemaCompoundPriceSpecification to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'CompoundPriceSpecification',
'priceComponent':
convertToJsonLd(priceComponent, [SchemaPriceSpecification]),
'priceType':
convertToJsonLd(priceType, [SchemaPriceTypeEnumeration, String]),
});