toJsonLd method
Serialize SchemaUnitPriceSpecification to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'UnitPriceSpecification',
'billingDuration': convertToJsonLd(
billingDuration, [SchemaDuration, SchemaQuantitativeValue, num]),
'billingIncrement': convertToJsonLd(billingIncrement, [num]),
'billingStart': convertToJsonLd(billingStart, [num]),
'priceComponentType': convertToJsonLd(
priceComponentType, [SchemaPriceComponentTypeEnumeration]),
'priceType':
convertToJsonLd(priceType, [SchemaPriceTypeEnumeration, String]),
'referenceQuantity':
convertToJsonLd(referenceQuantity, [SchemaQuantitativeValue]),
'unitCode': convertToJsonLd(unitCode, [String]),
'unitText': convertToJsonLd(unitText, [String]),
});