fromJson

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

Decodes a JSON string into a Geometry.

Return

The decoded Geometry.

Parameters

json

The JSON string to decode.

Throws

if the JSON string is invalid or cannot be deserialized.

if the JSON contains an invalid Geometry.