AccountModel.fromMap constructor

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

Implementation

factory AccountModel.fromMap(Map<String, dynamic> map) {
  return AccountModel(
    AddressModel.fromMap(map['_address']),
    map['_fullAddress'],
    priceRange: map['price_range'],
    physicalProducts: map['physical_products'],
    businessDescription: map['business_type'],
    personType: map['person_type'],
    acceptAutomaticTransfer: map['automatic_transfer'],
    cnpj: map['cnpj'],
    companyName: map['company_name'],
    cpf: map['cpf'],
    name: map['name'],
    phone: map['phone'],
    respName: map['resp_name'],
    respCPF: map['resp_cpf'],
    bank: map['bank'],
    bankAgency: map['bank_ag'],
    accountType: map['account_type'],
    bankAccountNumber: map['bank_cc'],
  );
}