WeatherChangeBean.fromJson constructor

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

Implementation

factory WeatherChangeBean.fromJson(Map<String, dynamic> json) => WeatherChangeBean(
      type: json["type"],
      tempUnit: json["tempUnit"] ?? -1,
    );