copyWithCompanion method
- ClassroomsCompanion data
Implementation
Classroom copyWithCompanion(ClassroomsCompanion data) {
return Classroom(
id: data.id.present ? data.id.value : this.id,
fetchedAt: data.fetchedAt.present ? data.fetchedAt.value : this.fetchedAt,
code: data.code.present ? data.code.value : this.code,
nameZh: data.nameZh.present ? data.nameZh.value : this.nameZh,
);
}