CityModel constructor
CityModel(
- dynamic jsonStr
Implementation
factory CityModel(jsonStr) => jsonStr is String
? CityModel.fromJson(json.decode(jsonStr))
: CityModel.fromJson(jsonStr);
factory CityModel(jsonStr) => jsonStr is String
? CityModel.fromJson(json.decode(jsonStr))
: CityModel.fromJson(jsonStr);