copyWith method
ServerNotificationModel
copyWith(
{ - String? uuid,
- String? notifiableType,
- int? notifiableId,
- String? authableType,
- int? authableId,
- String? code,
- String? body,
- String? title,
- Map<String, dynamic>? data,
- String? senderName,
- String? senderImage,
- DateTime? readAt,
- DateTime? createdAt,
})
Implementation
ServerNotificationModel copyWith({
String? uuid,
String? notifiableType,
int? notifiableId,
String? authableType,
int? authableId,
String? code,
String? body,
String? title,
Map<String, dynamic>? data,
String? senderName,
String? senderImage,
DateTime? readAt,
DateTime? createdAt,
}) {
return ServerNotificationModel(
uuid: uuid ?? this.uuid,
notifiableType: notifiableType ?? this.notifiableType,
notifiableId: notifiableId ?? this.notifiableId,
authableType: authableType ?? this.authableType,
authableId: authableId ?? this.authableId,
code: code ?? this.code,
body: body ?? this.body,
data: data ?? this.data,
title: title ?? this.title,
senderName: senderName ?? this.senderName,
senderImage: senderImage ?? this.senderImage,
readAt: readAt ?? this.readAt,
createdAt: createdAt ?? this.createdAt,
);
}