public static Report fromSlime(String reportId, Inspector reportInspector) {
        String typeString = reportInspector.field(TYPE_FIELD).asString();
        Type type = Arrays.stream(Type.values())
                .filter(t -> t.name().equalsIgnoreCase(typeString))
                .findFirst()
                .orElse(Type.UNSPECIFIED);

        long millisSinceEpoch = reportInspector.field(CREATED_FIELD).asLong();
        if (millisSinceEpoch <= 0) {
            // Including null or not set.
            millisSinceEpoch = Instant.now().toEpochMilli();
        }
        Instant createdTime = Instant.ofEpochMilli(millisSinceEpoch);

        String description = reportInspector.field(DESCRIPTION_FIELD).asString();

        return new Report(reportId, type, createdTime, description, reportInspector);
    }
The reportInspector will be used to serialize the full report later, including any createdTime and description.
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/Report.java