copyWithCompanion method
Implementation
MyUserRow copyWithCompanion(MyUsersCompanion data) {
return MyUserRow(
id: data.id.present ? data.id.value : this.id,
num: data.num.present ? data.num.value : this.num,
login: data.login.present ? data.login.value : this.login,
name: data.name.present ? data.name.value : this.name,
bio: data.bio.present ? data.bio.value : this.bio,
hasPassword:
data.hasPassword.present ? data.hasPassword.value : this.hasPassword,
emails: data.emails.present ? data.emails.value : this.emails,
phones: data.phones.present ? data.phones.value : this.phones,
chatDirectLink: data.chatDirectLink.present
? data.chatDirectLink.value
: this.chatDirectLink,
unreadChatsCount: data.unreadChatsCount.present
? data.unreadChatsCount.value
: this.unreadChatsCount,
status: data.status.present ? data.status.value : this.status,
avatar: data.avatar.present ? data.avatar.value : this.avatar,
callCover: data.callCover.present ? data.callCover.value : this.callCover,
presenceIndex: data.presenceIndex.present
? data.presenceIndex.value
: this.presenceIndex,
online: data.online.present ? data.online.value : this.online,
muted: data.muted.present ? data.muted.value : this.muted,
blocklistCount: data.blocklistCount.present
? data.blocklistCount.value
: this.blocklistCount,
lastSeenAt:
data.lastSeenAt.present ? data.lastSeenAt.value : this.lastSeenAt,
ver: data.ver.present ? data.ver.value : this.ver,
welcomeMessage: data.welcomeMessage.present
? data.welcomeMessage.value
: this.welcomeMessage,
);
}