copyWithWrapped method

DashboardUser copyWithWrapped({
  1. Wrapped<String>? id,
  2. Wrapped<String>? createdAt,
  3. Wrapped<String>? emailAddress,
  4. Wrapped<DashboardUserStatus>? status,
})

Implementation

DashboardUser copyWithWrapped(
    {Wrapped<String>? id,
    Wrapped<String>? createdAt,
    Wrapped<String>? emailAddress,
    Wrapped<enums.DashboardUserStatus>? status}) {
  return DashboardUser(
      id: (id != null ? id.value : this.id),
      createdAt: (createdAt != null ? createdAt.value : this.createdAt),
      emailAddress:
          (emailAddress != null ? emailAddress.value : this.emailAddress),
      status: (status != null ? status.value : this.status));
}