copyWith method

AccountUserRole copyWith({
  1. int? id,
  2. AccountUserRoleRole? role,
  3. int? user,
  4. AccountUserRoleStatus? status,
  5. String? code,
  6. String? email,
  7. String? phone,
})

Implementation

AccountUserRole copyWith(
    {int? id,
    enums.AccountUserRoleRole? role,
    int? user,
    enums.AccountUserRoleStatus? status,
    String? code,
    String? email,
    String? phone}) {
  return AccountUserRole(
      id: id ?? this.id,
      role: role ?? this.role,
      user: user ?? this.user,
      status: status ?? this.status,
      code: code ?? this.code,
      email: email ?? this.email,
      phone: phone ?? this.phone);
}