Wind.fromJson constructor Null safety
Implementation
factory Wind.fromJson(Map<String, dynamic> json) => Wind(
speed: json["speed"]?.toDouble() ?? 0,
deg: json["deg"] ?? 0,
gust: json["gust"]?.toDouble() ?? 0,
);
factory Wind.fromJson(Map<String, dynamic> json) => Wind(
speed: json["speed"]?.toDouble() ?? 0,
deg: json["deg"] ?? 0,
gust: json["gust"]?.toDouble() ?? 0,
);