MultiLineString.fromJson constructor

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

Creates a MultiLineString from JSON data.

Implementation

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

  return MultiLineString(
    _toLatLngListList(coordinates).map((e) => LineString(e)).toList(),
  );
}