i have this document structure in firestore.

[![enter image description here](https://i.stack.imgur.com/MNuXk.png)](https://i.stack.imgur.com/MNuXk.png)

i want to create supplier quotation object with this data but i can't map product data into product object how can i do it??

```
class SupplierQuotation {
  String details;
  Supplier supplier;
  Product product;
  Requisition requisition;

  SupplierQuotation(
      this.details, this.product, this.requisition, this.supplier);

  SupplierQuotation.fromFirestore(Map<String, dynamic> firestore)
      : details = firestore['details'],
        //supplier.suplierName = firestore['supplier'],
        product = firestore['product'];
  // requisition = firestore['requisition'];
}

```

firestore service code

```
Stream<List<SupplierQuotation>> getSupplierQuatations() {
    var object = _db
        .collection('supplierQuotation')
        .snapshots()
        .map((snapshot) => snapshot.documents
            .map(
              (document) => SupplierQuotation.fromFirestore(document.data),
            )
            .toList());

    return object;
  }

```