fromJson static method

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

Factory method to create a specific user type from json Override this in your custom user class

Implementation

static User fromJson(Map<String, dynamic> json) {
  return User.fromJson(json);
}