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