copyWithCompanion method
Implementation
LessonData copyWithCompanion(LessonCompanion data) {
return LessonData(
id: data.id.present ? data.id.value : this.id,
title: data.title.present ? data.title.value : this.title,
titleInEnglish: data.titleInEnglish.present
? data.titleInEnglish.value
: this.titleInEnglish,
seqNum: data.seqNum.present ? data.seqNum.value : this.seqNum,
locked: data.locked.present ? data.locked.value : this.locked,
published: data.published.present ? data.published.value : this.published,
publishDate: data.publishDate.present
? data.publishDate.value
: this.publishDate,
imagePath: data.imagePath.present ? data.imagePath.value : this.imagePath,
bookId: data.bookId.present ? data.bookId.value : this.bookId,
description: data.description.present
? data.description.value
: this.description,
note: data.note.present ? data.note.value : this.note,
);
}