Customer.fromMap constructor

Customer.fromMap(
  1. Map<String, dynamic> map
)

Creates a Customer instance from a Map.

Implementation

factory Customer.fromMap(Map<String, dynamic> map) {
  return Customer(
    companyID: map['companyID'] ?? '',
    registrationName: map['registrationName'] ?? '',
    address: Address.fromMap(map['address']),
    businessID: map['businessID'],
  );
}