urbanairship-core/src/main/java/com/urbanairship/iam/InAppRemoteConfig.java
@Nullable
    public static InAppRemoteConfig fromJsonList(@NonNull JsonList jsonList) {
        List<InAppRemoteConfig> configList = new ArrayList<>();
        for (JsonValue jsonValue : jsonList) {
            configList.add(InAppRemoteConfig.fromJsonValue(jsonValue));
        }

        if (configList.size() == 0) {
            return null;
        }

        if (configList.size() == 1) {
            return configList.get(0);
        }

        InAppRemoteConfig config = configList.remove(0);

        while (!configList.isEmpty()) {
            InAppRemoteConfig next = configList.remove(0);
            config = config.combine(next);
        }

        return config;
    }
/**
     * Parses and collapses config from list of in-app configs.
     *
     * @param jsonList The json list.
     * @return A in-app remote config, or null if the JSON is empty.
     */
Parses and collapses config from list of in-app configs.
@param jsonList The json list.
@return A in-app remote config, or null if the JSON is empty.
Parses and collapses config from list of in - app configs . @param jsonList The json list . @return A in - app remote config or null if the JSON is empty .
@Nullable
    public static InAppRemoteConfig fromJsonList(@NonNull JsonList jsonList) {
        List<InAppRemoteConfig> configList = new ArrayList<>();
        for (JsonValue jsonValue : jsonList) {
            configList.add(InAppRemoteConfig.fromJsonValue(jsonValue));
        }
        if (configList.size() == 0) {
            return null;
        }
        if (configList.size() == 1) {
            return configList.get(0);
        }
        InAppRemoteConfig config = configList.remove(0);
        while (!configList.isEmpty()) {
            InAppRemoteConfig next = configList.remove(0);
            config = config.combine(next);
        }
        return config;
    }
@ Nullable public static InAppRemoteConfig fromJsonList ( @ NonNull JsonList jsonList ) { List < InAppRemoteConfig > configList = new ArrayList < > ( ) ; for ( JsonValue jsonValue : jsonList ) { configList . add ( InAppRemoteConfig . fromJsonValue ( jsonValue ) ) ; } if ( configList . size ( ) == 0 ) { return null ; } if ( configList . size ( ) == 1 ) { return configList . get ( 0 ) ; } InAppRemoteConfig config = configList . remove ( 0 ) ; while ( ! configList . isEmpty ( ) ) { InAppRemoteConfig next = configList . remove ( 0 ) ; config = config . combine ( next ) ; } return config ; }
Parses and collapses config from list of in-app configs.
Parses and collapses config from list of in - app configs .