toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    "enabled": enabled,
    "color": color?.toHex(),
    "backgroundColor": backgroundColor?.toHex(),
    "distanceToTriggerSync": distanceToTriggerSync,
    "slingshotDistance": slingshotDistance,
    "size": size?.toNativeValue(),
    "attributedTitle": attributedTitle?.toMap() ?? {}
  };
}