copyWith method

  1. @override
UpdateChatJoinResult copyWith({
  1. int? queryId,
  2. int? chatId,
  3. ChatJoinRequestResult? result,
  4. dynamic extra,
  5. int? clientId,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
UpdateChatJoinResult copyWith({
  int? queryId,
  int? chatId,
  ChatJoinRequestResult? result,
  dynamic extra,
  int? clientId,
}) => UpdateChatJoinResult(
  queryId: queryId ?? this.queryId,
  chatId: chatId ?? this.chatId,
  result: result ?? this.result,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);