toJson method

Map<String, Object> toJson()

Implementation

Map<String, Object> toJson() => {
      "color": color.value,
      "backgroundColor": (backgroundColor ?? color.withOpacity(0.4)).value,
      "thickness": thickness,
    };