City.fromJson constructor

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

Implementation

City.fromJson(Map<String, dynamic> json) {
  this.name = json['name'];
  this.no = json['code'];
  this.countyList = (json['children'] as List).map((i) => County.fromJson(i)).toList();
}