copyWith method
AuthenticationDataModel
copyWith({
- String? id,
- String? token,
- User? user,
- String? refreshToken,
- AuthDeviceInfo? deviceInfo,
override
Implementation
@override
AuthenticationDataModel copyWith({
String? id,
String? token,
User? user,
String? refreshToken,
AuthDeviceInfo? deviceInfo,
}) {
return AuthenticationDataModel(
id: id ?? this.id,
token: token ?? this.token,
user: user ?? this.user,
refreshToken: refreshToken ?? this.refreshToken,
deviceInfo: deviceInfo ?? this.deviceInfo,
);
}