copyWithCompanion method

Group copyWithCompanion(
  1. GroupsCompanion data
)

Implementation

Group copyWithCompanion(GroupsCompanion data) {
  return Group(
    groupId: data.groupId.present ? data.groupId.value : this.groupId,
    displayName: data.displayName.present
        ? data.displayName.value
        : this.displayName,
    discoveredAt: data.discoveredAt.present
        ? data.discoveredAt.value
        : this.discoveredAt,
    lastSeenAt: data.lastSeenAt.present
        ? data.lastSeenAt.value
        : this.lastSeenAt,
    memberCount: data.memberCount.present
        ? data.memberCount.value
        : this.memberCount,
    isSubscribed: data.isSubscribed.present
        ? data.isSubscribed.value
        : this.isSubscribed,
    metadata: data.metadata.present ? data.metadata.value : this.metadata,
  );
}