copyWithCompanion method

UserRow copyWithCompanion(
  1. UsersCompanion data
)

Implementation

UserRow copyWithCompanion(UsersCompanion data) {
  return UserRow(
    id: data.id.present ? data.id.value : this.id,
    num: data.num.present ? data.num.value : this.num,
    name: data.name.present ? data.name.value : this.name,
    bio: data.bio.present ? data.bio.value : this.bio,
    avatar: data.avatar.present ? data.avatar.value : this.avatar,
    callCover: data.callCover.present ? data.callCover.value : this.callCover,
    mutualContactsCount: data.mutualContactsCount.present
        ? data.mutualContactsCount.value
        : this.mutualContactsCount,
    online: data.online.present ? data.online.value : this.online,
    presenceIndex: data.presenceIndex.present
        ? data.presenceIndex.value
        : this.presenceIndex,
    status: data.status.present ? data.status.value : this.status,
    isDeleted: data.isDeleted.present ? data.isDeleted.value : this.isDeleted,
    dialog: data.dialog.present ? data.dialog.value : this.dialog,
    isBlocked: data.isBlocked.present ? data.isBlocked.value : this.isBlocked,
    lastSeenAt:
        data.lastSeenAt.present ? data.lastSeenAt.value : this.lastSeenAt,
    contacts: data.contacts.present ? data.contacts.value : this.contacts,
    ver: data.ver.present ? data.ver.value : this.ver,
    blockedVer:
        data.blockedVer.present ? data.blockedVer.value : this.blockedVer,
    welcomeMessage: data.welcomeMessage.present
        ? data.welcomeMessage.value
        : this.welcomeMessage,
  );
}