copyWith method

ChatJoinRequestsInfo copyWith({
  1. int? totalCount,
  2. List<int>? userIds,
})

Copy model with modified properties.

Properties:

  • total_count: Total number of pending join requests
  • user_ids: Identifiers of at most 3 users sent the newest pending join requests

Implementation

ChatJoinRequestsInfo copyWith({
  int? totalCount,
  List<int>? userIds,
}) =>
    ChatJoinRequestsInfo(
      totalCount: totalCount ?? this.totalCount,
      userIds: userIds ?? this.userIds,
    );