copyWithCompanion method
- SessionsCompanion data
Implementation
SessionRow copyWithCompanion(SessionsCompanion data) {
return SessionRow(
id: data.id.present ? data.id.value : this.id,
ip: data.ip.present ? data.ip.value : this.ip,
userAgent: data.userAgent.present ? data.userAgent.value : this.userAgent,
lastActivatedAt: data.lastActivatedAt.present
? data.lastActivatedAt.value
: this.lastActivatedAt,
);
}