copyWith method

ConversationMessage copyWith({
  1. int? id,
  2. String? uid,
  3. String? companyUid,
  4. String? contactUid,
  5. dynamic instagramMessageId,
  6. String? senderId,
  7. String? recipientId,
  8. String? messageFrom,
  9. String? messageType,
  10. String? message,
  11. String? storyId,
  12. bool? isStory,
  13. String? storyUrl,
  14. String? status,
  15. String? platform,
  16. String? timestamp,
  17. DateTime? createdAt,
  18. DateTime? updatedAt,
  19. Contact? contact,
  20. Facebook? facebookConnection,
  21. Twitter? twitterConnection,
  22. 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,
  );
}