toJsonLd method
Serialize SchemaExchangeRateSpecification to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'ExchangeRateSpecification',
'currency': convertToJsonLd(currency, [String]),
'currentExchangeRate': convertToJsonLd(
currentExchangeRate, [SchemaUnitPriceSpecification]),
'exchangeRateSpread':
convertToJsonLd(exchangeRateSpread, [SchemaMonetaryAmount, num]),
});