AddressModel.fromMap constructor

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

Implementation

factory AddressModel.fromMap(Map<String, dynamic> map) {
  return AddressModel(
    street: map['street'],
    number: map['number'],
    city: map['city'],
    state: map['state'],
    country: map['country'],
    zipCode: map['zip_code'],
    district: map['district'],
  );
}