copyWithWrapped method

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

Implementation

GetConversationsPageResponseModel copyWithWrapped(
    {Wrapped<List<ConversationSummaryResponseModel>>? conversations,
    Wrapped<dynamic>? nextCursor,
    Wrapped<bool>? hasMore}) {
  return GetConversationsPageResponseModel(
      conversations:
          (conversations != null ? conversations.value : this.conversations),
      nextCursor: (nextCursor != null ? nextCursor.value : this.nextCursor),
      hasMore: (hasMore != null ? hasMore.value : this.hasMore));
}