Decodes the provided json String to an object of type t or T.
t
T
T decode<T>(String data, [Type? t]) { return deserialize<T>(jsonDecode(data), t); }