parseIndividual<Model extends BaseModel> method

Model parseIndividual<Model extends BaseModel>(
  1. DocumentSnapshot<Map<String, dynamic>> document
)

Implementation

Model parseIndividual<Model extends BaseModel>(
    DocumentSnapshot<Map<String, dynamic>> document) {
  var user = generate<Model>(document.data() ?? {}, document.id);
  return user;
}