src/main/java/seedu/address/storage/storageProgress/JsonProgressSerializableAddressBook.java
public ProgressAddressBook toModelType() throws IllegalValueException, CommandException {
        ProgressAddressBook progressAddressBook = new ProgressAddressBook();
        logger.info("Number of Progresses:" + progresses.size());
        for (JsonAdaptedProgress jsonAdaptedProgress : progresses) {
            Progress progress = jsonAdaptedProgress.toModelType();

            if (progressAddressBook.has(progress)) {
                throw new IllegalValueException(MESSAGE_DUPLICATE_PROGRESS);
            }

            progressAddressBook.add(progress);
        }
        return progressAddressBook;
    }
/**
     * Converts this address book into the model's {@code AddressBook} object.
     *
     * @throws IllegalValueException if there were any data constraints violated.
     */
Converts this address book into the model's  AddressBook object.
@throws IllegalValueException if there were any data constraints violated.
Converts this address book into the model ' s AddressBook object . @throws IllegalValueException if there were any data constraints violated .
public ProgressAddressBook toModelType() throws IllegalValueException, CommandException {
        ProgressAddressBook progressAddressBook = new ProgressAddressBook();
        logger.info("Number of Progresses:" + progresses.size());
        for (JsonAdaptedProgress jsonAdaptedProgress : progresses) {
            Progress progress = jsonAdaptedProgress.toModelType();
            if (progressAddressBook.has(progress)) {
                throw new IllegalValueException(MESSAGE_DUPLICATE_PROGRESS);
            }
            progressAddressBook.add(progress);
        }
        return progressAddressBook;
    }
public ProgressAddressBook toModelType ( ) throws IllegalValueException , CommandException { ProgressAddressBook progressAddressBook = new ProgressAddressBook ( ) ; logger . info ( "Number of Progresses:" + progresses . size ( ) ) ; for ( JsonAdaptedProgress jsonAdaptedProgress : progresses ) { Progress progress = jsonAdaptedProgress . toModelType ( ) ; if ( progressAddressBook . has ( progress ) ) { throw new IllegalValueException ( MESSAGE_DUPLICATE_PROGRESS ) ; } progressAddressBook . add ( progress ) ; } return progressAddressBook ; }
Converts this address book into the model's {@code AddressBook} object.
Converts this address book into the model ' s { @code AddressBook } object .