toMap method Null safety
- @override
override
Implementation
@override
Map<String, Object?> toMap() {
return {
'id': this.id,
'center': this.center.toMap(),
'radius': this.radius,
'width': this.width,
'strokeColor': this.strokeColor?.value.toRadixString(16),
'fillColor': this.fillColor?.value.toRadixString(16),
'lineDashType': this.lineDashType?.index,
'dottedLine': this.dottedLine,
'hollowShapes': this.hollowShapes?.map((e) => e.toMap()).toList(),
'zIndex': this.zIndex,
'visible': this.visible
};
}