toMap method
- @override
override
model -> map
Implementation
@override
Map<String, Object?> toMap() {
return Map.from(super.toMap())
..addAll({
'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),
'isGradientColor': this.isGradientColor,
'isTrackBloom': this.isTrackBloom,
'bloomSpeed': this.bloomSpeed,
'isThined': this.isThined,
'isCornerSmooth': this.isCornerSmooth,
'strokeColors': this
.strokeColors
?.map((color) => color.value.toRadixString(16))
.toList(),
});
}