public Map<String, Object> serialize() { Map<String, Object> serialize = new HashMap<>(); serialize.put("max_corner", ConfigUtil.serializeLocation(maxCorner)); serialize.put("min_corner", ConfigUtil.serializeLocation(minCorner)); return serialize; }
public Region(Map<String, Object> deserialize) { this( ConfigUtil.deserializeLocation(deserialize.get("max_corner")), ConfigUtil.deserializeLocation("min_corner")); }