Function: fromJSON()
fromJSON<
T,E>(json):Result<T,E>
Given a ResultJSON object, convert it into a Result.
Note that this is not designed for parsing data off the wire, but requires you to have already parsed it into the ResultJSON format.
Type Parameters
T
T
E
E
Parameters
json
ResultJSON<T, E>
The value to convert from a JSON object.
Returns
Result<T, E>
The converted Result type.