Companion

Factory methods for creating and serializing PolygonGeometry objects.

Functions

Link copied to clipboard
fun fromJson(@Language(value = "json") json: String): PolygonGeometry

Decodes a JSON string into a PolygonGeometry.

Link copied to clipboard
fun fromJsonOrNull(@Language(value = "json") json: String): PolygonGeometry?

Decodes a JSON string into a PolygonGeometry, or returns null if deserialization fails.

Link copied to clipboard
fun toJson(polygonGeometry: PolygonGeometry): String

Encodes a PolygonGeometry into a JSON string.