Customer.fromMap constructor
Implementation
factory Customer.fromMap(Map<String, dynamic> map) {
return Customer(
id: map['id'],
name: map['name'],
phoneNumber: map['phoneNumber'],
customerType: map['customerType'],
creditPoints: map['creditPoints'],
);
}