toJsonLd method
Serialize SchemaQuantitativeValue to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'QuantitativeValue',
'additionalProperty':
convertToJsonLd(additionalProperty, [SchemaPropertyValue]),
'maxValue': convertToJsonLd(maxValue, [num]),
'minValue': convertToJsonLd(minValue, [num]),
'unitCode': convertToJsonLd(unitCode, [String]),
'unitText': convertToJsonLd(unitText, [String]),
'value':
convertToJsonLd(value, [String, SchemaStructuredValue, bool, num]),
'valueReference': convertToJsonLd(valueReference, [
SchemaDefinedTerm,
SchemaEnumeration,
SchemaMeasurementTypeEnumeration,
SchemaPropertyValue,
SchemaQualitativeValue,
SchemaQuantitativeValue,
String,
SchemaStructuredValue
]),
});