copyWith method
ChatSessionResponse
copyWith({
- int? id,
- String? guid,
- UserViewModel? taskOwner,
- UserViewModel? user,
- TaskViewModel? task,
- DateTime? lastMessageAt,
- int? unreadMessages,
Implementation
ChatSessionResponse copyWith(
{int? id,
String? guid,
UserViewModel? taskOwner,
UserViewModel? user,
TaskViewModel? task,
DateTime? lastMessageAt,
int? unreadMessages}) {
return ChatSessionResponse(
id: id ?? this.id,
guid: guid ?? this.guid,
taskOwner: taskOwner ?? this.taskOwner,
user: user ?? this.user,
task: task ?? this.task,
lastMessageAt: lastMessageAt ?? this.lastMessageAt,
unreadMessages: unreadMessages ?? this.unreadMessages);
}