fromAreaPickerAddressModel static method
NearbyOrAreaPickerAddressModel
fromAreaPickerAddressModel(
- AreaPickerAddressModel areaPickerAddressModel
Implementation
static NearbyOrAreaPickerAddressModel fromAreaPickerAddressModel(
AreaPickerAddressModel areaPickerAddressModel) {
return NearbyOrAreaPickerAddressModel(
provinceName: areaPickerAddressModel.provinceName,
provinceCode: areaPickerAddressModel.provinceCode,
cityName: areaPickerAddressModel.cityName,
cityCode: areaPickerAddressModel.cityCode,
areaName: areaPickerAddressModel.areaName,
areaCode: areaPickerAddressModel.areaCode,
address: areaPickerAddressModel.address,
name: areaPickerAddressModel.address, // 区域的 name 设为和 address 同值
provinceIndex: areaPickerAddressModel.provinceIndex,
cityIndex: areaPickerAddressModel.cityIndex,
areaIndex: areaPickerAddressModel.areaIndex,
);
}