fromJson

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

Decodes a JSON string into a PolygonGeometry.

Return

The decoded PolygonGeometry.

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.