Temperature.fromJson constructor

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

Creates a Temperature object from json

Implementation

factory Temperature.fromJson(Map<String, dynamic> json) {
  return Temperature(
    json['temp'],
    json['feels_like'],
    json['temp_min'],
    json['temp_max'],
    json['pressure'],
    json['humidity'],
  );
}