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