urbanairship-core/src/main/java/com/urbanairship/PreferenceDataStore.java
public void put(@NonNull String key, JsonSerializable value) {
        if (value == null) {
            remove(key);
        } else {
            put(key, value.toJsonValue());
        }
    }
/**
     * Stores a {@link JsonSerializable} value in the preferences.
     *
     * @param key The preference name.
     * @param value The preference value.
     */
Stores a  JsonSerializable value in the preferences.
@param key The preference name.
@param value The preference value.
Stores a JsonSerializable value in the preferences . @param key The preference name . @param value The preference value .
public void put(@NonNull String key, JsonSerializable value) {
        if (value == null) {
            remove(key);
        } else {
            put(key, value.toJsonValue());
        }
    }
public void put ( @ NonNull String key , JsonSerializable value ) { if ( value == null ) { remove ( key ) ; } else { put ( key , value . toJsonValue ( ) ) ; } }
Stores a {@link JsonSerializable} value in the preferences.
Stores a { @link JsonSerializable } value in the preferences .