public void fromJson(JsonObject json) {
time = getLong(json, "time");
master = getBoolean(json, "master");
clusterName = getString(json, "clusterName");
instanceNames = new HashSet<String>();
final JsonArray jsonInstanceNames = getArray(json, "instanceNames");
for (JsonValue instanceName : jsonInstanceNames.values()) {
instanceNames.add(instanceName.asString());
}
memberList = new ArrayList<String>();
final JsonArray jsonMemberList = getArray(json, "memberList");
for (JsonValue member : jsonMemberList.values()) {
memberList.add(member.asString());
}
final JsonObject jsonMemberState = getObject(json, "memberState");
memberState = new MemberStateImpl();
memberState.fromJson(jsonMemberState);