public static HostInfo deserialize(byte[] bytes) {
        String serializedString = new String(bytes, StandardCharsets.UTF_8);
        WireHostInfo wireHostInfo = uncheck(() -> mapper.readValue(serializedString, WireHostInfo.class));
        return HostInfo.createSuspended(HostStatus.valueOf(Objects.requireNonNull(wireHostInfo.status)),
                                      Instant.ofEpochMilli(Objects.requireNonNull(wireHostInfo.suspendedSinceInMillis)));
    }
Handles serialization/deserialization of HostInfo to/from byte array.

@author hakonhall
orchestrator/src/main/java/com/yahoo/vespa/orchestrator/status/json/WireHostInfo.java