urbanairship-core/src/main/java/com/urbanairship/CoreReceiver.java
private Map<String, ActionValue> parseActionValues(String payload) {
        Map<String, ActionValue> actionValueMap = new HashMap<>();

        try {
            JsonMap actionsJson = JsonValue.parseString(payload).getMap();
            if (actionsJson != null) {
                for (Map.Entry<String, JsonValue> entry : actionsJson) {
                    actionValueMap.put(entry.getKey(), new ActionValue(entry.getValue()));
                }
            }
        } catch (JsonException e) {
            Logger.error("Failed to parse actions for push.", e);
        }


        return actionValueMap;
    }
/**
     * Parses an action payload.
     *
     * @param payload The payload.
     * @return The parsed actions.
     */
Parses an action payload.
@param payload The payload.
@return The parsed actions.
Parses an action payload . @param payload The payload . @return The parsed actions .
private Map<String, ActionValue> parseActionValues(String payload) {
        Map<String, ActionValue> actionValueMap = new HashMap<>();
        try {
            JsonMap actionsJson = JsonValue.parseString(payload).getMap();
            if (actionsJson != null) {
                for (Map.Entry<String, JsonValue> entry : actionsJson) {
                    actionValueMap.put(entry.getKey(), new ActionValue(entry.getValue()));
                }
            }
        } catch (JsonException e) {
            Logger.error("Failed to parse actions for push.", e);
        }
        return actionValueMap;
    }
private Map < String , ActionValue > parseActionValues ( String payload ) { Map < String , ActionValue > actionValueMap = new HashMap < > ( ) ; try { JsonMap actionsJson = JsonValue . parseString ( payload ) . getMap ( ) ; if ( actionsJson != null ) { for ( Map . Entry < String , JsonValue > entry : actionsJson ) { actionValueMap . put ( entry . getKey ( ) , new ActionValue ( entry . getValue ( ) ) ) ; } } } catch ( JsonException e ) { Logger . error ( "Failed to parse actions for push." , e ) ; } return actionValueMap ; }
Parses an action payload.
Parses an action payload .