Companion

Factory methods for creating and serializing Polygon objects.

Functions

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

Deserialize a Polygon from a JSON string.

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

Deserialize a Polygon from a JSON string, or null if parsing fails.