toMap method
- @override
override
model -> map
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),
'fillColor': this.fillColor?.value?.toRadixString(16),
'lineDashType': this.lineDashType?.index,
'hollowShapes': this.hollowShapes?.map((e) => e?.toMap())?.toList(),
'zIndex': this.zIndex,
'visible': this.visible
};
}