toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
      "coordinates": coordinates == null
          ? []
          : List<dynamic>.from(
              coordinates!.map((x) => List<dynamic>.from(x.map((x) => x)))),
      "type": type,
    };