Coord.fromJson constructor Null safety

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

Implementation

factory Coord.fromJson(Map<String, dynamic> json) => Coord(
      lon: json["lon"].toDouble() ?? 0,
      lat: json["lat"].toDouble() ?? 0,
    );