src/main/java/seedu/address/storage/JsonUserPrefsStorage.java
/**
     * Similar to {@link #readUserPrefs()}
     * @param prefsFilePath location of the data. Cannot be null.
     * @throws DataConversionException if the file format is not as expected.
     */
Similar to  #readUserPrefs()
@param prefsFilePath location of the data. Cannot be null.
@throws DataConversionException if the file format is not as expected.
Similar to #readUserPrefs () @param prefsFilePath location of the data . Cannot be null . @throws DataConversionException if the file format is not as expected .
public Optional<UserPrefs> readUserPrefs(Path prefsFilePath) throws DataConversionException {
        requireNonNull(prefsFilePath);
        Optional<JsonSerializableUserPrefs> jsonUserPrefs = JsonUtil.readJsonFile(
                filePath, JsonSerializableUserPrefs.class);
        if (jsonUserPrefs.isEmpty()) {
            return Optional.empty();
        }
        try {
            return Optional.of(jsonUserPrefs.get().toModelType());
        } catch (IllegalValueException ive) {
            logger.info("Illegal values found in " + filePath + ": " + ive.getMessage());
            throw new DataConversionException(ive);
        }
    }
public Optional < UserPrefs > readUserPrefs ( Path prefsFilePath ) throws DataConversionException { requireNonNull ( prefsFilePath ) ; Optional < JsonSerializableUserPrefs > jsonUserPrefs = JsonUtil . readJsonFile ( filePath , JsonSerializableUserPrefs . class ) ; if ( jsonUserPrefs . isEmpty ( ) ) { return Optional . empty ( ) ; } try { return Optional . of ( jsonUserPrefs . get ( ) . toModelType ( ) ) ; } catch ( IllegalValueException ive ) { logger . info ( "Illegal values found in " + filePath + ": " + ive . getMessage ( ) ) ; throw new DataConversionException ( ive ) ; } }
Similar to {@link #readUserPrefs()}
 @param prefsFilePath location of the data.
Similar to { @link #readUserPrefs () } @param prefsFilePath location of the data .