toMap method

Map<String, dynamic> toMap()

Converts the PointConnectionStyle object to a map.

Returns a map representation of the PointConnectionStyle object.

Implementation

Map<String, dynamic> toMap() {
  return <String, dynamic>{
    'type': type.name,
    'dotSize': dotSize,
    'spacing': spacing,
    'dashSize': dashSize,
    'lineWidth': lineWidth,
    'color': color.value,
  };
}