toJsonLd method
Serialize SchemaSubstance to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'Substance',
'activeIngredient': convertToJsonLd(activeIngredient, [String]),
'maximumIntake':
convertToJsonLd(maximumIntake, [SchemaMaximumDoseSchedule]),
});