fromJson<T> static method

T fromJson<T>(
  1. String json
)

Deserializes JSON text into type T.

Implementation

static T fromJson<T>(String json) {
  final dynamic decoded = jsonDecode(json);
  return fromDynamic<T>(decoded);
}