toMap method

Map<String, dynamic> toMap()

Converts the PointStyle object to a map.

Implementation

Map<String, dynamic> toMap() {
  return <String, dynamic>{
    'size': size,
    'color': color.value,
  };
}