
br.com.moip.utilities.Parser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-java Show documentation
Show all versions of sdk-java Show documentation
Java SDK for Moip APIs integration
The newest version!
package br.com.moip.utilities;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.List;
import java.util.Map;
/**
*
*/
public class Parser {
/**
* This method is used to cast a {@code Object} to {@code Map}. The main
* objective of this method is objectToMap the objects from response Map to make possible
* catch its attributes' values.
*
* @param object
* {@code Object} any Object type.
*
* @return {@code Map}
*/
public Map objectToMap(Object object) {
ObjectMapper mapper = new ObjectMapper();
return mapper.convertValue(object, Map.class);
}
/**
*
* @param object
* @return
*/
public List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy