class AdConfiguration implements Serializable {

    public static AdConfiguration extractFromMap(Map<String, Object> map) {
        if (map == null) {
            return null;
        }

        Object adConfiguration = map.get(AD_CONFIGURATION_KEY);

        if (adConfiguration instanceof AdConfiguration) {
            return (AdConfiguration) adConfiguration;
        }

        return null;
    }

    @VisibleForTesting public  AdConfiguration(final Context context);

}