UserList.fromMap constructor

UserList.fromMap(
  1. Map json
)

Implementation

UserList.fromMap(Map json) {
  ok = json['ok'];
  users = new List<User>();

  List<Map> members = (json['members'] as List).cast();

  for (int i = 0; i < members.length; ++i) {
    users.add(new User.fromMap(members[i]));
  }
}