toJsonLd method
Serialize SchemaPostalAddress to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'PostalAddress',
'addressCountry':
convertToJsonLd(addressCountry, [SchemaCountry, String]),
'addressLocality': convertToJsonLd(addressLocality, [String]),
'addressRegion':
convertToJsonLd(addressRegion, [SchemaAdministrativeArea, String]),
'extendedAddress': convertToJsonLd(extendedAddress, [String]),
'postOfficeBoxNumber': convertToJsonLd(postOfficeBoxNumber, [String]),
'postalCode': convertToJsonLd(postalCode, [String]),
'streetAddress': convertToJsonLd(streetAddress, [String]),
});