Companion

Factory methods for creating and serializing GeoJsonObject objects.

Functions

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

Decodes a JSON string into a GeoJsonObject.

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

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

Link copied to clipboard
fun toJson(geoJsonObject: GeoJsonObject): String

Encodes a GeoJsonObject into a JSON string.