src/main/java/de/blau/android/resources/eli/EliFeatureCollection.java
/**
     * Create a new instance of this class by passing in a formatted valid JSON String.
     * 
     * @param json a formatted valid JSON string defining a GeoJson Feature Collection
     * @return a new instance of this class defined by the values passed inside this static factory method
     */
Create a new instance of this class by passing in a formatted valid JSON String.

@param json a formatted valid JSON string defining a GeoJson Feature Collection
@return a new instance of this class defined by the values passed inside this static factory method
Create a new instance of this class by passing in a formatted valid JSON String . @param json a formatted valid JSON string defining a GeoJson Feature Collection @return a new instance of this class defined by the values passed inside this static factory method
public static EliFeatureCollection fromJson(@NonNull String json) {
        GsonBuilder gson = new GsonBuilder();
        gson.registerTypeAdapterFactory(EliGeoJsonAdapterFactory.create());
        gson.registerTypeAdapterFactory(GeometryAdapterFactory.create());
        return gson.create().fromJson(json, EliFeatureCollection.class);
    }
public static EliFeatureCollection fromJson ( @ NonNull String json ) { GsonBuilder gson = new GsonBuilder ( ) ; gson . registerTypeAdapterFactory ( EliGeoJsonAdapterFactory . create ( ) ) ; gson . registerTypeAdapterFactory ( GeometryAdapterFactory . create ( ) ) ; return gson . create ( ) . fromJson ( json , EliFeatureCollection . class ) ; }
Create a new instance of this class by passing in a formatted valid JSON String.
Create a new instance of this class by passing in a formatted valid JSON String .