fromJson

fun fromJson(@Language(value = "json") json: String): SingleGeometry(source)

Decodes a JSON string into a SingleGeometry.

Return

The decoded SingleGeometry.

Parameters

json

The JSON string to decode.

Throws

if the JSON string is invalid or cannot be deserialized.

if the geometry does not meet structural requirements.