Class MappingUtils
java.lang.Object
org.starcoin.serde.format.jackson.utils.MappingUtils
public class MappingUtils extends Object
-
Method Summary
Modifier and Type Method Description static com.fasterxml.jackson.databind.ObjectMappergetObjectMapper()static Map<String,ContainerFormat>toContainerFormatMap(com.fasterxml.jackson.databind.ObjectMapper objectMapper, Map<String,Object> map)Convert 'dynamic' map(probably loaded directly from YAML/JSON) to ContainerFormat map.
-
Method Details
-
toContainerFormatMap
public static Map<String,ContainerFormat> toContainerFormatMap(com.fasterxml.jackson.databind.ObjectMapper objectMapper, Map<String,Object> map)Convert 'dynamic' map(probably loaded directly from YAML/JSON) to ContainerFormat map.- Parameters:
objectMapper- ObjectMappermap- Origin map.- Returns:
- ContainerFormat map.
-
getObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-