fromJson<T> abstract method

T? fromJson<T>(
  1. Serializer<T> serializer,
  2. String serialized
)

Convenience method for when you have a JSON string and know the type you're deserializing. Specify the type by specifying its Serializer class. Equivalent to calling deserialize with a specifiedType then calling json.decode.

Implementation

T? fromJson<T>(Serializer<T> serializer, String serialized);