copyWith method

GetConversationsPageResponseModel copyWith({
  1. List<ConversationSummaryResponseModel>? conversations,
  2. dynamic nextCursor,
  3. bool? hasMore,
})

Implementation

GetConversationsPageResponseModel copyWith(
    {List<ConversationSummaryResponseModel>? conversations,
    dynamic nextCursor,
    bool? hasMore}) {
  return GetConversationsPageResponseModel(
      conversations: conversations ?? this.conversations,
      nextCursor: nextCursor ?? this.nextCursor,
      hasMore: hasMore ?? this.hasMore);
}