toCloneObject(isDeep = true) {
    var json = this.attrs(
      "itemType",
      "name",
      "elementType",
      "type",
      "visible",
      "lock",
      "selected"
    );

    if (isDeep) {
      json.layers = this.json.layers.map((layer) => layer.clone(isDeep));
    }

    return json;
  }
//  * defence to set invalid key-value
  //  *
  //  * @param {*} key
  //  * @param {*} value
  //