decodeWithType method

Object? decodeWithType(
  1. String data
)

Decodes the provided json String if it has been encoded with encodeWithType.

Implementation

Object? decodeWithType(String data) {
  return deserializeByClassName(jsonDecode(data));
}