LineString.fromJson constructor

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

Creates a LineString from JSON data.

Implementation

factory LineString.fromJson(Map<String, dynamic> json) {
  final coordinates = json['coordinates'];

  return LineString(_toLatLngList(coordinates));
}