toJsonLd method
Serialize SchemaSpecialAnnouncement to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'SpecialAnnouncement',
'announcementLocation': convertToJsonLd(
announcementLocation, [SchemaCivicStructure, SchemaLocalBusiness]),
'category': convertToJsonLd(category, [
SchemaCategoryCode,
SchemaPhysicalActivityCategory,
String,
SchemaThing
]),
'datePosted': convertToJsonLd(datePosted, [String]),
'diseasePreventionInfo':
convertToJsonLd(diseasePreventionInfo, [String, SchemaWebContent]),
'diseaseSpreadStatistics': convertToJsonLd(diseaseSpreadStatistics,
[SchemaDataset, SchemaObservation, String, SchemaWebContent]),
'gettingTestedInfo':
convertToJsonLd(gettingTestedInfo, [String, SchemaWebContent]),
'governmentBenefitsInfo':
convertToJsonLd(governmentBenefitsInfo, [SchemaGovernmentService]),
'newsUpdatesAndGuidelines': convertToJsonLd(
newsUpdatesAndGuidelines, [String, SchemaWebContent]),
'publicTransportClosuresInfo': convertToJsonLd(
publicTransportClosuresInfo, [String, SchemaWebContent]),
'quarantineGuidelines':
convertToJsonLd(quarantineGuidelines, [String, SchemaWebContent]),
'schoolClosuresInfo':
convertToJsonLd(schoolClosuresInfo, [String, SchemaWebContent]),
'travelBans': convertToJsonLd(travelBans, [String, SchemaWebContent]),
'webFeed': convertToJsonLd(webFeed, [SchemaDataFeed, String]),
});