copyWithCompanion method

LocationAuditData copyWithCompanion(
  1. LocationAuditCompanion data
)

Implementation

LocationAuditData copyWithCompanion(LocationAuditCompanion data) {
  return LocationAuditData(
    id: data.id.present ? data.id.value : this.id,
    createdAt: data.createdAt.present ? data.createdAt.value : this.createdAt,
    lat: data.lat.present ? data.lat.value : this.lat,
    long: data.long.present ? data.long.value : this.long,
    altitude: data.altitude.present ? data.altitude.value : this.altitude,
    speed: data.speed.present ? data.speed.value : this.speed,
    accuracy: data.accuracy.present ? data.accuracy.value : this.accuracy,
    distance: data.distance.present ? data.distance.value : this.distance,
  );
}