UserInfo.fromJson constructor

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

Implementation

factory UserInfo.fromJson(Map<String, dynamic> json) {
  return UserInfo(json['id'], json['name'], json['photo']);
}