code: public JSONObject getJson() throws JSONException {
          JSONObject json = create();
          json.put("id", getLogicalId());
          json.put("to", "A" + toId);
          if (completionCode != null)
              json.put("resultCode", completionCode);
          if (eventType != null)
              json.put("event", EventType.getEventTypeName(eventType));
          if (attributes != null && ! attributes.isEmpty())
              json.put("attributes", Attribute.getAttributesJson(attributes));
          return json;
      }
docs: Does not populate from field since JSON transitions are children of activities.