copyWith method

BusinessConnection copyWith({
  1. String? id,
  2. int? userId,
  3. int? userChatId,
  4. int? date,
  5. BusinessBotRights? rights,
  6. bool? isEnabled,
})

Implementation

BusinessConnection copyWith({
  String? id,
  int? userId,
  int? userChatId,
  int? date,
  BusinessBotRights? rights,
  bool? isEnabled,
}) => BusinessConnection(
  id: id ?? this.id,
  userId: userId ?? this.userId,
  userChatId: userChatId ?? this.userChatId,
  date: date ?? this.date,
  rights: rights ?? this.rights,
  isEnabled: isEnabled ?? this.isEnabled,
);