toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'size': size,
    'color': color.toARGB32(),
    'hasGlow': hasGlow,
    'glowColor': glowColor?.toARGB32(),
    'glowIntensity': glowIntensity,
    'sizeAttenuation': sizeAttenuation,
    'transitionDuration': transitionDuration,
    'shape': shape.index,
    'showOrbitPath': showOrbitPath,
    'orbitPathColor': orbitPathColor.toARGB32(),
    'orbitPathWidth': orbitPathWidth,
    'orbitPathDashed': orbitPathDashed,
  };
}