SelectedCity.fromJson constructor

SelectedCity.fromJson(
  1. Map json
)

Implementation

factory SelectedCity.fromJson(Map<dynamic, dynamic> json) {
  return SelectedCity(
    city: json['city'] as String,
    district: json['district'] as String,
  );
}