CityRecursiveModel.fromJson constructor

CityRecursiveModel.fromJson(
  1. dynamic jsonRes
)

Implementation

CityRecursiveModel.fromJson(jsonRes) {
  List items = jsonRes;
  records = [];
  for (var listItem in jsonRes ?? []) {
    records.add(CityModel.fromJson(listItem));
  }
}