parse<Model extends BaseModel> method

List<Model> parse<Model extends BaseModel>(
  1. QuerySnapshot<Object?> querySnapshot
)

Implementation

List<Model> parse<Model extends BaseModel>(QuerySnapshot querySnapshot) {
  var list = querySnapshot.docs.map((documentSnapshot) {
    var data = generate<Model>(
        documentSnapshot.data() as Map<String, dynamic>,
        documentSnapshot.id) as Model;
    return data;
  }).toList();

  return list;
}