copyWithCompanion method
Implementation
TeacherData copyWithCompanion(TeacherCompanion data) {
return TeacherData(
id: data.id.present ? data.id.value : this.id,
fullName: data.fullName.present ? data.fullName.value : this.fullName,
birthday: data.birthday.present ? data.birthday.value : this.birthday,
genderId: data.genderId.present ? data.genderId.value : this.genderId,
teacherPositionId: data.teacherPositionId.present
? data.teacherPositionId.value
: this.teacherPositionId,
locked: data.locked.present ? data.locked.value : this.locked,
active: data.active.present ? data.active.value : this.active,
universityId: data.universityId.present
? data.universityId.value
: this.universityId,
countryId: data.countryId.present ? data.countryId.value : this.countryId,
youtubeVideoCode: data.youtubeVideoCode.present
? data.youtubeVideoCode.value
: this.youtubeVideoCode,
email: data.email.present ? data.email.value : this.email,
skype: data.skype.present ? data.skype.value : this.skype,
facebook: data.facebook.present ? data.facebook.value : this.facebook,
phoneNumber: data.phoneNumber.present
? data.phoneNumber.value
: this.phoneNumber,
description: data.description.present
? data.description.value
: this.description,
note: data.note.present ? data.note.value : this.note,
imagePath: data.imagePath.present ? data.imagePath.value : this.imagePath,
);
}