MonoNewCustomerModel.fromMap constructor

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

Implementation

factory MonoNewCustomerModel.fromMap(Map<String, dynamic> map) {
  return MonoNewCustomerModel(
    name: map['name'] ?? '',
    email: map['email'] ?? '',
    identity: map['identity'] != null
        ? MonoNewCustomerIdentity.fromMap(map['identity'])
        : null,
  );
}