toJsonLd method
Serialize SchemaCookAction to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'CookAction',
'foodEstablishment': convertToJsonLd(
foodEstablishment, [SchemaFoodEstablishment, SchemaPlace]),
'foodEvent': convertToJsonLd(foodEvent, [SchemaFoodEvent]),
'recipe': convertToJsonLd(recipe, [SchemaRecipe]),
});