City.fromJson constructor

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

Implementation

City.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  name = json['name'];
  stateId = json['state_id'];
}