public static Feature create()

in src/main/java/org/opensearch/geospatial/geojson/FeatureFactory.java [25:34]


    public static Feature create(Map<String, Object> input) {
        Object geoJSONType = input.get(Feature.TYPE_KEY);
        if (geoJSONType == null) {
            throw new IllegalArgumentException(Feature.TYPE_KEY + " cannot be null");
        }
        if (!Feature.TYPE.equalsIgnoreCase(geoJSONType.toString())) {
            throw new IllegalArgumentException(geoJSONType + " is not supported. Only type " + Feature.TYPE + " is supported");
        }
        return extractFeature(input).build();
    }