UserList.fromMap constructor

UserList.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory UserList.fromMap(Map<String, dynamic> map) {
  return UserList(
    total: map['total'],
    users: List<User>.from(map['users'].map((p) => User.fromMap(p))),
  );
}