copyWithCompanion method
Implementation
MapRoomRecord copyWithCompanion(CampusMapRoomsCompanion data) {
return MapRoomRecord(
id: data.id.present ? data.id.value : this.id,
layerName: data.layerName.present ? data.layerName.value : this.layerName,
nameZh: data.nameZh.present ? data.nameZh.value : this.nameZh,
nameEn: data.nameEn.present ? data.nameEn.value : this.nameEn,
number: data.number.present ? data.number.value : this.number,
geometry: data.geometry.present ? data.geometry.value : this.geometry,
);
}