src/main/java/seedu/address/storage/storageFinance/JsonFinanceSerializableAddressBook.java
public FinanceAddressBook toModelType() throws IllegalValueException {
        FinanceAddressBook financeAddressBook = new FinanceAddressBook();
        for (JsonAdaptedFinance jsonAdaptedFinance : finances) {
            Finance finance = jsonAdaptedFinance.toModelType();
            if (financeAddressBook.has(finance)) {
                throw new IllegalValueException(MESSAGE_DUPLICATE_FINANCE);
            }
            financeAddressBook.add(finance);
        }
        return financeAddressBook;
    }
/**
     * 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 FinanceAddressBook toModelType() throws IllegalValueException {
        FinanceAddressBook financeAddressBook = new FinanceAddressBook();
        for (JsonAdaptedFinance jsonAdaptedFinance : finances) {
            Finance finance = jsonAdaptedFinance.toModelType();
            if (financeAddressBook.has(finance)) {
                throw new IllegalValueException(MESSAGE_DUPLICATE_FINANCE);
            }
            financeAddressBook.add(finance);
        }
        return financeAddressBook;
    }
public FinanceAddressBook toModelType ( ) throws IllegalValueException { FinanceAddressBook financeAddressBook = new FinanceAddressBook ( ) ; for ( JsonAdaptedFinance jsonAdaptedFinance : finances ) { Finance finance = jsonAdaptedFinance . toModelType ( ) ; if ( financeAddressBook . has ( finance ) ) { throw new IllegalValueException ( MESSAGE_DUPLICATE_FINANCE ) ; } financeAddressBook . add ( finance ) ; } return financeAddressBook ; }
Converts this address book into the model's {@code AddressBook} object.
Converts this address book into the model ' s { @code AddressBook } object .