City.fromJson constructor

City.fromJson(
  1. Map<String, dynamic> json
)

Implementation

City.fromJson(Map<String, dynamic> json)
    : city = json['city'] as String,
      districts = json['districts'] as List<String>;