ResultResourceDeserializer

Custom deserializer for JSONResult<GeoJSONAttributes> objects handling different GeoJSON types.

This deserializer is used with Gson to handle the fact that the JSON response structure for a JSONResult<GeoJSONAttributes> object can vary depending on the type property within the "geojson" node.

This class maps the type value to the appropriate deserialization logic.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun deserialize(json: JsonElement?, typeOfT: Type?, context: JsonDeserializationContext?): JSONResult<GeoJSONAttributes>?

Deserializes the JSON element based on the type property within the "geojson" node.