PayerModel.fromMap constructor

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

Implementation

factory PayerModel.fromMap(Map<String, dynamic> map) {
  return PayerModel(
    cpfOrCnpj: map['cpf_or_cnpj'],
    name: map['name'],
    phonePrefix: map['phone_prefix'],
    phone: map['phone'],
    email: map['email'],
    address: AddressModel.fromMap(map['address']),
  );
}