copyWith method

RegisterResponse copyWith({
  1. String? email,
  2. String? phone,
  3. List<String>? roles,
  4. String? id,
})

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,
  );
}