toJsonLd method
Serialize SchemaContactPoint to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'ContactPoint',
'areaServed': convertToJsonLd(areaServed,
[SchemaAdministrativeArea, SchemaGeoShape, SchemaPlace, String]),
'availableLanguage':
convertToJsonLd(availableLanguage, [SchemaLanguage, String]),
'contactOption':
convertToJsonLd(contactOption, [SchemaContactPointOption]),
'contactType': convertToJsonLd(contactType, [String]),
'email': convertToJsonLd(email, [String]),
'faxNumber': convertToJsonLd(faxNumber, [String]),
'hoursAvailable':
convertToJsonLd(hoursAvailable, [SchemaOpeningHoursSpecification]),
'productSupported':
convertToJsonLd(productSupported, [SchemaProduct, String]),
'serviceArea': convertToJsonLd(serviceArea,
[SchemaAdministrativeArea, SchemaGeoShape, SchemaPlace]),
'telephone': convertToJsonLd(telephone, [String]),
});