decode<T> method

T decode<T>(
  1. String data, [
  2. Type? t
])
inherited

Decodes the provided json String to an object of type t or T.

Implementation

T decode<T>(String data, [Type? t]) {
  return deserialize<T>(jsonDecode(data), t);
}