fromJson static method

User fromJson(
  1. String jsonString
)

Constructs a User instance from a JSON string.

This method decodes the JSON and passes it to fromMap.

Implementation

static User fromJson(String jsonString) {
  return fromMap(jsonDecode(jsonString));
}