@SuppressWarnings("unchecked")
@Override
public <T> T fromJson(Object object) {
JSONObject json = JSONObject.toJsonObject(object);
this.key = json.optString(KEY);
this.label = json.optString(LABEL);
this.nextFlow = json.optString(NEXT_FLOW);
this.nextFlowType = json.optString(NEXT_FLOW_TYPE);
this.transitionType = json.opt(TRANSITION_TYPE);
this.transitionCompletionMessage = json.optString(TRANSITION_COMPLETION_MESSAGE);
this.initialValues = MapJsonRenderer.INSTANCE.fromJson(Map.class, json.opt(INITIAL_VALUES));