use of org.n52.faroe.SettingType in project arctic-sea by 52North.
the class JsonSettingsDao method createSettingValue.
protected SettingValue<?> createSettingValue(String key, JsonNode node) {
SettingType type = SettingType.fromString(node.path(JSONSettingConstants.TYPE_KEY).asText(null));
Object value = decodeValue(type, node.path(JSONSettingConstants.VALUE_KEY));
return new JsonSettingValue<>(type, key, value);
}
Aggregations