src/main/java/seedu/address/storage/JsonAdaptedCalorieManager.java
/**
     * Converts this Jackson-friendly adapted CalorieManager
     * object into the CalorieManager {@code CalorieManager} object.
     *
     * @throws IllegalValueException if there were any data constraints violated in the adapted CalorieManager.
     */
Converts this Jackson-friendly adapted CalorieManager
object into the CalorieManager  CalorieManager object.

@throws IllegalValueException if there were any data constraints violated in the adapted CalorieManager.
Converts this Jackson - friendly adapted CalorieManager object into the CalorieManager CalorieManager object . @throws IllegalValueException if there were any data constraints violated in the adapted CalorieManager .
public CalorieManager toModelType() throws IllegalValueException {
        final ObservableList<Input> dayInputs = FXCollections.observableArrayList();
        for (JsonAdaptedInput input : inputList) {
            dayInputs.add(input.toModelType());
        }
        final ObservableList<Output> dayOutputs = FXCollections.observableArrayList();
        for (JsonAdaptedOutput output : outputList) {
            dayOutputs.add(output.toModelType());
        }
        return new CalorieManager(dayInputs, dayOutputs);
    }
public CalorieManager toModelType ( ) throws IllegalValueException { final ObservableList < Input > dayInputs = FXCollections . observableArrayList ( ) ; for ( JsonAdaptedInput input : inputList ) { dayInputs . add ( input . toModelType ( ) ) ; } final ObservableList < Output > dayOutputs = FXCollections . observableArrayList ( ) ; for ( JsonAdaptedOutput output : outputList ) { dayOutputs . add ( output . toModelType ( ) ) ; } return new CalorieManager ( dayInputs , dayOutputs ) ; }
Converts this Jackson-friendly adapted CalorieManager
 object into the CalorieManager {@code CalorieManager} object.
Converts this Jackson - friendly adapted CalorieManager object into the CalorieManager { @code CalorieManager } object .