'Flutter Firebase how to add map within array
Solution 1:[1]
Assuming that HizmetModel has a method toMap() that converts HizmetModel(title: 'ServiceA', price: 30) => {'ServiceA': 30}.
List<Map> firebaseData = services.map((e) => e.toMap());
You can upload this List to firebase as usual.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Dharman |

