copyWith method

UpdateNewBusinessCallbackQuery copyWith({
  1. int? id,
  2. int? senderUserId,
  3. String? connectionId,
  4. BusinessMessage? message,
  5. int? chatInstance,
  6. CallbackQueryPayload? payload,
})

Implementation

UpdateNewBusinessCallbackQuery copyWith({
  int? id,
  int? senderUserId,
  String? connectionId,
  BusinessMessage? message,
  int? chatInstance,
  CallbackQueryPayload? payload,
}) => UpdateNewBusinessCallbackQuery(
  id: id ?? this.id,
  senderUserId: senderUserId ?? this.senderUserId,
  connectionId: connectionId ?? this.connectionId,
  message: message ?? this.message,
  chatInstance: chatInstance ?? this.chatInstance,
  payload: payload ?? this.payload,
);