Snow.fromJson constructor Null safety

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

Implementation

factory Snow.fromJson(Map<String, dynamic> json) => Snow(
      the1H: json["1h"]?.toDouble() ?? 0,
      the3H: json["3h"]?.toDouble() ?? 0,
    );