toMap method

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

model -> map

Implementation

@override
Map<String, Object> toMap() {
  return {
    'id': this.getId(),
    'image': this.image,
    'width': this.width,
    'height': this.height,
    'anchorX': this.anchorX,
    'anchorY': this.anchorY,
    'zoomLevel': this.zoomLevel,
    'position': this.position?.toMap(),
    'bounds': this.bounds?.toMap(),
    'transparency': this.transparency,
    'zIndex': this.zIndex,
    'visible': this.visible
  };
}