CityListResponse.fromJson constructor

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

Implementation

factory CityListResponse.fromJson(Map<String, dynamic> json) {
  return CityListResponse(
    id: json['id'],
    name: json['name'],
    stateId: json['state_id'],
  );
}