listFromJson static method

List<Coordinate> listFromJson(
  1. List? json
)

Get a list of Coordinate from a list of json

Implementation

static List<Coordinate> listFromJson(List<dynamic>? json) {
  return json == null
      ? <Coordinate>[]
      : json.map((value) => Coordinate.fromJson(value)).toList();
}