copyWith method

GetAllConversationsData copyWith({
  1. int? id,
  2. String? uid,
  3. String? companyUid,
  4. String? contactUid,
  5. String? channel,
  6. String? lastMessage,
  7. String? messageType,
  8. String? noOfUnseenMessages,
  9. String? connectionUid,
  10. DateTime? createdAt,
  11. DateTime? updatedAt,
  12. Contact? contact,
  13. String? status,
  14. Facebook? facebookConnection,
  15. Twitter? twitterConnection,
  16. Instagram? instagramConnection,
  17. String? sentMessage,
})

Implementation

GetAllConversationsData copyWith({
  int? id,
  String? uid,
  String? companyUid,
  String? contactUid,
  String? channel,
  String? lastMessage,
  String? messageType,
  String? noOfUnseenMessages,
  String? connectionUid,
  DateTime? createdAt,
  DateTime? updatedAt,
  Contact? contact,
  String? status,
  Facebook? facebookConnection,
  Twitter? twitterConnection,
  Instagram? instagramConnection,
  String? sentMessage,
}) {
  return GetAllConversationsData(
    id: id ?? this.id,
    uid: uid ?? this.uid,
    companyUid: companyUid ?? this.companyUid,
    contactUid: contactUid ?? this.contactUid,
    channel: channel ?? this.channel,
    lastMessage: lastMessage ?? this.lastMessage,
    messageType: messageType ?? this.messageType,
    noOfUnseenMessages: noOfUnseenMessages ?? this.noOfUnseenMessages,
    connectionUid: connectionUid ?? this.connectionUid,
    createdAt: createdAt ?? this.createdAt,
    updatedAt: updatedAt ?? this.updatedAt,
    contact: contact ?? this.contact,
    status: status ?? this.status,
    facebookConnection: facebookConnection ?? this.facebookConnection,
    twitterConnection: twitterConnection ?? this.twitterConnection,
    instagramConnection: instagramConnection ?? this.instagramConnection,
    sentMessage: sentMessage ?? this.sentMessage,
  );
}