@Override public void fromJson(JsonObject json) { this.creationTime = json.getLong("creationTime", -1L); int status = json.getInt("status", WanSyncStatus.READY.getStatus()); this.status = WanSyncStatus.getByStatus(status); this.syncedPartitionCount = json.getInt("syncedPartitionCount", 0); this.activeWanConfigName = json.getString("activeWanConfigName", null); this.activePublisherName = json.getString("activePublisherName", null); }