CityModel constructor

CityModel(
  1. dynamic jsonStr
)

Implementation

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