copyWithCompanion method

MapFloorRecord copyWithCompanion(
  1. CampusMapFloorsCompanion data
)

Implementation

MapFloorRecord copyWithCompanion(CampusMapFloorsCompanion data) {
  return MapFloorRecord(
    layerName: data.layerName.present ? data.layerName.value : this.layerName,
    building: data.building.present ? data.building.value : this.building,
    code: data.code.present ? data.code.value : this.code,
    fetchedAt: data.fetchedAt.present ? data.fetchedAt.value : this.fetchedAt,
  );
}