receives a row from the db (a map) and then outputs the desired type
TModel getTypeFromRow(Map<String, Map<String, dynamic>> row);