toMap method
Serializes to the map format expected by the native layers.
Implementation
Map<String, dynamic> toMap() => {
'id': id,
'points': points.map((e) => e.toMap()).toList(growable: false),
'color': _argbColorInt(color),
'width': width,
'geodesic': geodesic,
'dotted': dotted,
};