src/main/java/seedu/address/storage/storageAssignments/JsonAssignmentSerializableAddressBook.java
public AssignmentAddressBook toModelType() throws IllegalValueException {
        AssignmentAddressBook assignmentAddressBook = new AssignmentAddressBook();
        for (JsonAdaptedAssignment jsonAdaptedAssignment : assignments) {
            Assignment assignment = jsonAdaptedAssignment.toModelType();
            if (assignmentAddressBook.has(assignment)) {
                throw new IllegalValueException(MESSAGE_DUPLICATE_COURSE);
            }
            assignmentAddressBook.add(assignment);
        }
        return assignmentAddressBook;
    }
/**
     * 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 AssignmentAddressBook toModelType() throws IllegalValueException {
        AssignmentAddressBook assignmentAddressBook = new AssignmentAddressBook();
        for (JsonAdaptedAssignment jsonAdaptedAssignment : assignments) {
            Assignment assignment = jsonAdaptedAssignment.toModelType();
            if (assignmentAddressBook.has(assignment)) {
                throw new IllegalValueException(MESSAGE_DUPLICATE_COURSE);
            }
            assignmentAddressBook.add(assignment);
        }
        return assignmentAddressBook;
    }
public AssignmentAddressBook toModelType ( ) throws IllegalValueException { AssignmentAddressBook assignmentAddressBook = new AssignmentAddressBook ( ) ; for ( JsonAdaptedAssignment jsonAdaptedAssignment : assignments ) { Assignment assignment = jsonAdaptedAssignment . toModelType ( ) ; if ( assignmentAddressBook . has ( assignment ) ) { throw new IllegalValueException ( MESSAGE_DUPLICATE_COURSE ) ; } assignmentAddressBook . add ( assignment ) ; } return assignmentAddressBook ; }
Converts this address book into the model's {@code AddressBook} object.
Converts this address book into the model ' s { @code AddressBook } object .