toJsonLd method
Serialize SchemaDefinedRegion to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'DefinedRegion',
'addressCountry':
convertToJsonLd(addressCountry, [SchemaCountry, String]),
'addressRegion':
convertToJsonLd(addressRegion, [SchemaAdministrativeArea, String]),
'postalCode': convertToJsonLd(postalCode, [String]),
'postalCodePrefix': convertToJsonLd(postalCodePrefix, [String]),
'postalCodeRange': convertToJsonLd(
postalCodeRange, [SchemaPostalCodeRangeSpecification]),
});