Decodes a json string to a given type T.
T
This is a typed wrapper around the fromValue method.
T fromJson<T>(String json);