class PurgeEntitiesReason implements ShutdownReason {

    static PurgeEntitiesReason fromJson(final JsonObject jsonObject) {
        final List<String> entityIdsToPurge = jsonObject.getValueOrThrow(JsonFields.DETAILS).asArray().stream()
                .map(JsonValue::asString)
                .collect(Collectors.toList());

        return new PurgeEntitiesReason(entityIdsToPurge);
    }

    private  PurgeEntitiesReason(final List<String> entityIdsToPurge);

}