toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "name": name,
      "componentId": componentId,
      "height": height,
      "width": width,
      "x": x,
      "y": y,
      "_id": id,
    };