Here is my model and I wanna store this data in a list ,using getx .null safety method is on.
var productlist = <Productmodel>[].obs;
Productmodel.frommap( DocumentSnapshot snapshot) {
id = snapshot['id'];
productname = snapshot['name'];
price = snapshot['price'];
image = snapshot['image'];
brand = snapshot['brand'];
}