toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'id': id,
'name': name,
'address': address,
'zipCode': zipCode,
'city': city,
'country': country,
'fiscalCode': fiscalCode,
'profileImgUrl': profileImgUrl,
'pos': posList!.map((pos) => pos.toMap()).toList(),
};
}