@Test void fromJsonStringShouldThrowOnMissingValueField() { assertThatIllegalStateException() .isThrownBy(() -> AttributeValue.fromJsonString("{\"serializer\":\"MapSerializer\"}")); }
public static AttributeValue<?> fromJsonString(String json) throws IOException { ObjectMapper objectMapper = new ObjectMapper(); JsonNode tree = objectMapper.readTree(json); return fromJson(tree); }
AttributeValue { public static AttributeValue<?> fromJsonString(String json) throws IOException { ObjectMapper objectMapper = new ObjectMapper(); JsonNode tree = objectMapper.readTree(json); return fromJson(tree); } }
AttributeValue { public static AttributeValue<?> fromJsonString(String json) throws IOException { ObjectMapper objectMapper = new ObjectMapper(); JsonNode tree = objectMapper.readTree(json); return fromJson(tree); } private  AttributeValue(T value, Serializer<T> serializer); }
AttributeValue { public static AttributeValue<?> fromJsonString(String json) throws IOException { ObjectMapper objectMapper = new ObjectMapper(); JsonNode tree = objectMapper.readTree(json); return fromJson(tree); } private  AttributeValue(T value, Serializer<T> serializer); static AttributeValue<Boolean> of(Boolean value); static AttributeValue<String> of(String value); static AttributeValue<Integer> of(Integer value); static AttributeValue<Long> of(Long value); static AttributeValue<Float> of(Float value); static AttributeValue<Double> of(Double value); static AttributeValue<MessageIdDto> of(MessageIdDto value); static AttributeValue<T> of(T value); static AttributeValue<URL> of(URL value); static AttributeValue<Optional<AttributeValue<T>>> of(Optional<AttributeValue<T>> value); @SuppressWarnings({ "unchecked", "rawtypes" }) static AttributeValue<Collection<AttributeValue<?>>> of(Collection<AttributeValue<?>> value); @SuppressWarnings({ "unchecked", "rawtypes" }) static AttributeValue<Map<String, AttributeValue<?>>> of(Map<String, AttributeValue<?>> value); static AttributeValue<Serializable> ofSerializable(Serializable value); @SuppressWarnings({ "unchecked", "rawtypes" }) static AttributeValue<?> ofAny(Object value); static AttributeValue<?> fromJsonString(String json); static Optional<AttributeValue<?>> optionalFromJsonString(String json); static AttributeValue<?> fromJson(JsonNode input); static Optional<?> deserialize(ObjectNode fields); static Optional<?> findSerializerAndDeserialize(JsonNode serializer, JsonNode value); T value(); Optional<U> valueAs(Class<U> type); @SuppressWarnings("unchecked") AttributeValue<T> duplicate(); JsonNode toJson(); T getValue(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString(); }
AttributeValue { public static AttributeValue<?> fromJsonString(String json) throws IOException { ObjectMapper objectMapper = new ObjectMapper(); JsonNode tree = objectMapper.readTree(json); return fromJson(tree); } private  AttributeValue(T value, Serializer<T> serializer); static AttributeValue<Boolean> of(Boolean value); static AttributeValue<String> of(String value); static AttributeValue<Integer> of(Integer value); static AttributeValue<Long> of(Long value); static AttributeValue<Float> of(Float value); static AttributeValue<Double> of(Double value); static AttributeValue<MessageIdDto> of(MessageIdDto value); static AttributeValue<T> of(T value); static AttributeValue<URL> of(URL value); static AttributeValue<Optional<AttributeValue<T>>> of(Optional<AttributeValue<T>> value); @SuppressWarnings({ "unchecked", "rawtypes" }) static AttributeValue<Collection<AttributeValue<?>>> of(Collection<AttributeValue<?>> value); @SuppressWarnings({ "unchecked", "rawtypes" }) static AttributeValue<Map<String, AttributeValue<?>>> of(Map<String, AttributeValue<?>> value); static AttributeValue<Serializable> ofSerializable(Serializable value); @SuppressWarnings({ "unchecked", "rawtypes" }) static AttributeValue<?> ofAny(Object value); static AttributeValue<?> fromJsonString(String json); static Optional<AttributeValue<?>> optionalFromJsonString(String json); static AttributeValue<?> fromJson(JsonNode input); static Optional<?> deserialize(ObjectNode fields); static Optional<?> findSerializerAndDeserialize(JsonNode serializer, JsonNode value); T value(); Optional<U> valueAs(Class<U> type); @SuppressWarnings("unchecked") AttributeValue<T> duplicate(); JsonNode toJson(); T getValue(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString();  }