toJson method

Map<String, dynamic> toJson()
override

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['data'] = this.data;
  data['height'] = this.height;
  data['id'] = this.id;
  data['name'] = this.name;
  data['offsetx'] = this.offsetX;
  data['offsety'] = this.offsetY;
  data['opacity'] = this.opacity;
  data['type'] = this.type?.getName();
  data['visible'] = this.visible;
  data['width'] = this.width;
  data['x'] = this.x;
  data['y'] = this.y;
  return data;
}