toMap method Null safety
- @override
override
Implementation
@override
Map<String, Object?> toMap() {
return {
'id': this.id,
'coordinates': this.coordinates.map((coord) => coord.toMap()).toList(),
'traceOverlayAnimateOption': this.traceOverlayAnimateOption.toMap(),
'width': this.width,
'strokeColor': this.strokeColor?.value.toRadixString(16),
'fillColor': this.fillColor?.value.toRadixString(16),
'zIndex': this.zIndex,
'visible': this.visible
};
}