package org.swellrt.beta.model;

public class SEvent {
  
  public static final int ADDED_VALUE = 11;
  public static final int REMOVED_VALUE = 12;
  public static final int UPDATED_VALUE = 13;
  
  private final int type;
  
  /** The map or list containing the value */
  private final SNode target;
  
  /** The key of the value, if target is map */
  private final String targetKey;
  
  /** The actual value, added, removed or updated */
  private final SNode value;

  public SEvent(int type, SNode target, String targetKey, SNode value) {
    super();
    this.type = type;
    this.target = target;
    this.targetKey = targetKey;
    this.value = value;
  }

  public int getType() {
    return type;
  }

  public SNode getTarget() {
    return target;
  }

  public String getTargetKey() {
    return targetKey;
  }

  public SNode getValue() {
    return value;
  }
  
  @Override
  public String toString() {
    return "SEvent ["+targetKey+","+value+"]";
  }
}

@@ -26,16 +26,165 @@
 model;%0A%0A
+import jsinterop.annotations.JsIgnore;%0Aimport jsinterop.annotations.JsProperty;%0Aimport jsinterop.annotations.JsType;%0A%0A@JsType(namespace = %22swellrt%22)%0A
 public c
@@ -615,16 +615,28 @@
 value;%0A%0A
+  @JsIgnore%0A
   public
@@ -814,32 +814,46 @@
 e = value;%0A  %7D%0A%0A
+  @JsProperty%0A
   public int get
@@ -879,24 +879,38 @@
  type;%0A  %7D%0A%0A
+  @JsProperty%0A
   public SNo
@@ -946,24 +946,38 @@
 arget;%0A  %7D%0A%0A
+  @JsProperty%0A
   public Str
@@ -980,22 +980,16 @@
  String 
-getTar
 getKey()
@@ -1018,16 +1018,30 @@
 y;%0A  %7D%0A%0A
+  @JsProperty%0A
   public

Fix jsinterop annotations