copyWith method
Implementation
RegisterResponse copyWith({
String? email,
String? phone,
List<String>? roles,
String? id,
}) {
return RegisterResponse(
email: email ?? this.email,
phone: phone ?? this.phone,
roles: roles ?? this.roles,
id: id ?? this.id,
);
}