toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    "lines": lines.map((m) => m.toJson()).toList(),
    "radius": radius,
    "width": width,
    "height": height,
    "bgColor": bgColor.value,
  };
}