Coordinate.fromJson constructor Null safety

Coordinate.fromJson(
  1. List<double> json
)

Creates a Coordinate from a JSON List.

Implementation

factory Coordinate.fromJson(List<double> json) {
  return Coordinate(json[1], json[0]);
}