copyWith method

PagesAndDialogAccesss copyWith({
  1. Map<String, bool>? pagesAccess,
  2. Map<String, bool>? dialogsAccess,
  3. Map<String, bool>? packageConditionsAccess,
  4. PrivilegeLevel? privilegeLevel,
  5. bool? blocked,
})

Implementation

PagesAndDialogAccesss copyWith({
  Map<String, bool>? pagesAccess,
  Map<String, bool>? dialogsAccess,
  Map<String, bool>? packageConditionsAccess,
  PrivilegeLevel? privilegeLevel,
  bool? blocked,
}) {
  return PagesAndDialogAccesss(
      pagesAccess ?? this.pagesAccess,
      dialogsAccess ?? this.dialogsAccess,
      packageConditionsAccess ?? this.packageConditionsAccess,
      privilegeLevel ?? this.privilegeLevel,
      blocked ?? this.blocked);
}