src/main/java/seedu/address/storage/storageStaff/JsonStaffSerializableAddressBook.java
public StaffAddressBook toModelType() throws IllegalValueException {
        StaffAddressBook staffAddressBook = new StaffAddressBook();
        for (JsonAdaptedStaff jsonAdaptedStaff : staffs) {
            Staff staff = jsonAdaptedStaff.toModelType();
            if (staffAddressBook.has(staff)) {
                throw new IllegalValueException(MESSAGE_DUPLICATE_STAFF);
            }
            staffAddressBook.add(staff);
        }
        return staffAddressBook;
    }
/**
     * 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 StaffAddressBook toModelType() throws IllegalValueException {
        StaffAddressBook staffAddressBook = new StaffAddressBook();
        for (JsonAdaptedStaff jsonAdaptedStaff : staffs) {
            Staff staff = jsonAdaptedStaff.toModelType();
            if (staffAddressBook.has(staff)) {
                throw new IllegalValueException(MESSAGE_DUPLICATE_STAFF);
            }
            staffAddressBook.add(staff);
        }
        return staffAddressBook;
    }
public StaffAddressBook toModelType ( ) throws IllegalValueException { StaffAddressBook staffAddressBook = new StaffAddressBook ( ) ; for ( JsonAdaptedStaff jsonAdaptedStaff : staffs ) { Staff staff = jsonAdaptedStaff . toModelType ( ) ; if ( staffAddressBook . has ( staff ) ) { throw new IllegalValueException ( MESSAGE_DUPLICATE_STAFF ) ; } staffAddressBook . add ( staff ) ; } return staffAddressBook ; }
Converts this address book into the model's {@code AddressBook} object.
Converts this address book into the model ' s { @code AddressBook } object .