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