fromJson

inline fun <T> fromJson(jsonResponse: String): SwitchboardResult<T>

Parses a typed result from a JSON response returned by the native layer.

Return

A result containing the parsed value of type T, or an error if parsing failed.

Parameters

jsonResponse

The JSON response to parse.