FromJson<E> typedef
A function that converts a JSON map to an object of type E.
This typedef defines the signature for deserialization functions used by
JSON storage containers. The function receives a JSON map (typically
obtained from jsonDecode) and returns an instance of type E.
Parameters:
json- A map representing the JSON structure of the object. Keys are strings and values can be any JSON-compatible type (String, num, bool, List, Map, or null).
Returns:
An instance of type E constructed from the JSON data.
Implementation
typedef FromJson<E> = E Function(Map<String, dynamic> json);