Companion

Factory methods for creating and serializing SingleGeometry objects.

Functions

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

Decodes a JSON string into a SingleGeometry.

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

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

Link copied to clipboard
fun toJson(singleGeometry: SingleGeometry): String

Encodes a SingleGeometry into a JSON string.