All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rocks.voss.toniebox.beans.amazon.AmazonBean Maven / Gradle / Ivy

There is a newer version: 3.7
Show newest version
package rocks.voss.toniebox.beans.amazon;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.Data;

import java.io.IOException;
import java.io.Serializable;

@Data
public class AmazonBean implements Serializable {
	private UrlBean url;
	private String uuid;

	public static AmazonBean createBean(String json) throws IOException {
		ObjectMapper mapper = new ObjectMapper();
		JsonNode jsonNode = mapper.readValue(json, JsonNode.class);
		return mapper.treeToValue(jsonNode, AmazonBean.class);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy