User.fromJson constructor
User.fromJson(
- String source
It converts a JSON string into a User object.
Args: source (String): The JSON string to be converted into a User object.
Implementation
factory User.fromJson(String source) =>
User.fromMap(json.decode(source) as Map<String, dynamic>);