toJsonLd method
Serialize SchemaEnergyConsumptionDetails to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'EnergyConsumptionDetails',
'energyEfficiencyScaleMax': convertToJsonLd(
energyEfficiencyScaleMax, [SchemaEUEnergyEfficiencyEnumeration]),
'energyEfficiencyScaleMin': convertToJsonLd(
energyEfficiencyScaleMin, [SchemaEUEnergyEfficiencyEnumeration]),
'hasEnergyEfficiencyCategory': convertToJsonLd(
hasEnergyEfficiencyCategory, [SchemaEnergyEfficiencyEnumeration]),
});