MultiPoint.fromJson constructor

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

Creates a MultiPoint from JSON data.

Implementation

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

  return MultiPoint(_toLatLngList(coordinates).map((e) => Point(e)).toList());
}