src/main/java/seedu/address/storage/storageStudent/JsonStudentSerializableAddressBook.java
public StudentAddressBook toModelType() throws IllegalValueException {
        StudentAddressBook studentAddressBook = new StudentAddressBook();
        for (JsonAdaptedStudent jsonAdaptedStudent : students) {
            Student student = jsonAdaptedStudent.toModelType();
            if (studentAddressBook.has(student)) {
                throw new IllegalValueException(MESSAGE_DUPLICATE_STUDENT);
            }
            studentAddressBook.add(student);
        }
        return studentAddressBook;
    }
/**
     * 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 StudentAddressBook toModelType() throws IllegalValueException {
        StudentAddressBook studentAddressBook = new StudentAddressBook();
        for (JsonAdaptedStudent jsonAdaptedStudent : students) {
            Student student = jsonAdaptedStudent.toModelType();
            if (studentAddressBook.has(student)) {
                throw new IllegalValueException(MESSAGE_DUPLICATE_STUDENT);
            }
            studentAddressBook.add(student);
        }
        return studentAddressBook;
    }
public StudentAddressBook toModelType ( ) throws IllegalValueException { StudentAddressBook studentAddressBook = new StudentAddressBook ( ) ; for ( JsonAdaptedStudent jsonAdaptedStudent : students ) { Student student = jsonAdaptedStudent . toModelType ( ) ; if ( studentAddressBook . has ( student ) ) { throw new IllegalValueException ( MESSAGE_DUPLICATE_STUDENT ) ; } studentAddressBook . add ( student ) ; } return studentAddressBook ; }
Converts this address book into the model's {@code AddressBook} object.
Converts this address book into the model ' s { @code AddressBook } object .