extractCepValuesFromResponse function

Cep extractCepValuesFromResponse(
  1. Map<String, dynamic> responseObject
)

Implementation

Cep extractCepValuesFromResponse(Map<String, dynamic> responseObject) {
  return Cep(
    cep: responseObject['cep'].replaceFirst('-', ''),
    city: responseObject['localidade'],
    neighborhood: responseObject['bairro'],
    state: responseObject['uf'],
    street: responseObject['logradouro'],
  );
}