toJsonLd method
Serialize SchemaGeospatialGeometry to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'GeospatialGeometry',
'geoContains': convertToJsonLd(geoContains,
(v) => v is SchemaGeospatialGeometry || v is SchemaPlace),
'geoCoveredBy': convertToJsonLd(geoCoveredBy,
(v) => v is SchemaGeospatialGeometry || v is SchemaPlace),
'geoCovers': convertToJsonLd(geoCovers,
(v) => v is SchemaGeospatialGeometry || v is SchemaPlace),
'geoCrosses': convertToJsonLd(geoCrosses,
(v) => v is SchemaGeospatialGeometry || v is SchemaPlace),
'geoDisjoint': convertToJsonLd(geoDisjoint,
(v) => v is SchemaGeospatialGeometry || v is SchemaPlace),
'geoEquals': convertToJsonLd(geoEquals,
(v) => v is SchemaGeospatialGeometry || v is SchemaPlace),
'geoIntersects': convertToJsonLd(geoIntersects,
(v) => v is SchemaGeospatialGeometry || v is SchemaPlace),
'geoOverlaps': convertToJsonLd(geoOverlaps,
(v) => v is SchemaGeospatialGeometry || v is SchemaPlace),
'geoTouches': convertToJsonLd(geoTouches,
(v) => v is SchemaGeospatialGeometry || v is SchemaPlace),
'geoWithin': convertToJsonLd(geoWithin,
(v) => v is SchemaGeospatialGeometry || v is SchemaPlace),
});