fromJson

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

Deserialize a Polygon from a JSON string.

Return

The deserialized Polygon.

Parameters

json

The JSON string to parse.

Throws

if the JSON string is invalid or cannot be deserialized.

if the geometry does not meet structural requirements.