copyWith method
ConversationMessage
copyWith({
- int? id,
- String? uid,
- String? companyUid,
- String? contactUid,
- dynamic instagramMessageId,
- String? senderId,
- String? recipientId,
- String? messageFrom,
- String? messageType,
- String? message,
- String? storyId,
- bool? isStory,
- String? storyUrl,
- String? status,
- String? platform,
- String? timestamp,
- DateTime? createdAt,
- DateTime? updatedAt,
- Contact? contact,
- Facebook? facebookConnection,
- Twitter? twitterConnection,
- Instagram? instagramConnection,
Implementation
ConversationMessage copyWith({
int? id,
String? uid,
String? companyUid,
String? contactUid,
dynamic instagramMessageId,
String? senderId,
String? recipientId,
String? messageFrom,
String? messageType,
String? message,
String? storyId,
bool? isStory,
String? storyUrl,
String? status,
String? platform,
String? timestamp,
DateTime? createdAt,
DateTime? updatedAt,
Contact? contact,
Facebook? facebookConnection,
Twitter? twitterConnection,
Instagram? instagramConnection,
}) {
return ConversationMessage(
id: id ?? this.id,
uid: uid ?? this.uid,
companyUid: companyUid ?? this.companyUid,
contactUid: contactUid ?? this.contactUid,
instagramMessageId: instagramMessageId ?? this.instagramMessageId,
senderId: senderId ?? this.senderId,
recipientId: recipientId ?? this.recipientId,
messageFrom: messageFrom ?? this.messageFrom,
messageType: messageType ?? this.messageType,
message: message ?? this.message,
storyId: storyId ?? this.storyId,
isStory: isStory ?? this.isStory,
storyUrl: storyUrl ?? this.storyUrl,
status: status ?? this.status,
platform: platform ?? this.platform,
timestamp: timestamp ?? this.timestamp,
createdAt: createdAt ?? this.createdAt,
updatedAt: updatedAt ?? this.updatedAt,
contact: contact ?? this.contact,
facebookConnection: facebookConnection ?? this.facebookConnection,
twitterConnection: twitterConnection ?? this.twitterConnection,
instagramConnection: instagramConnection ?? this.instagramConnection,
);
}