copyWithWrapped method
Implementation
CurrentStudentResponse copyWithWrapped({
Wrapped<String>? id,
Wrapped<String>? lastName,
Wrapped<String>? firstName,
Wrapped<String?>? middleName,
Wrapped<String>? universityEmail,
Wrapped<String>? timeAccount,
Wrapped<int?>? studyStartYear,
Wrapped<enums.StudyLevel>? studyLevel,
Wrapped<int>? lateDaysBalance,
}) {
return CurrentStudentResponse(
id: (id != null ? id.value : this.id),
lastName: (lastName != null ? lastName.value : this.lastName),
firstName: (firstName != null ? firstName.value : this.firstName),
middleName: (middleName != null ? middleName.value : this.middleName),
universityEmail: (universityEmail != null
? universityEmail.value
: this.universityEmail),
timeAccount: (timeAccount != null ? timeAccount.value : this.timeAccount),
studyStartYear: (studyStartYear != null
? studyStartYear.value
: this.studyStartYear),
studyLevel: (studyLevel != null ? studyLevel.value : this.studyLevel),
lateDaysBalance: (lateDaysBalance != null
? lateDaysBalance.value
: this.lateDaysBalance),
);
}