fromJsonList static method

List<UserModel> fromJsonList(
  1. dynamic data
)

Implementation

static List<UserModel> fromJsonList(var data) {
  return data
      .map<UserModel>((json) => UserModel.fromJson(json))
      .toList();
}