toMap method

  1. @override
Map<String, Object> toMap ()
override

model -> map

Implementation

@override
Map<String, Object> toMap() {
  return {
    'id': this.getId(),
    '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,
    'zIndex': this.zIndex,
    'visible': this.visible
  };
}