fromJson abstract method

T fromJson(
  1. Map<String, dynamic> json
)

Converts a JSON map to the state object of type T.

Implement this method to deserialize your state from JSON.

Example:

@override
UserProfile fromJson(Map<String, dynamic> json) {
  return UserProfile.fromJson(json);
}

@param json The JSON map to deserialize @return The deserialized state object

Implementation

T fromJson(Map<String, dynamic> json);