copyWith method

SpacePermission copyWith({
  1. int? id,
  2. SpacePermissionSubjects? subjects,
  3. OperationCheckResult? operation,
  4. bool? anonymousAccess,
  5. bool? unlicensedAccess,
})

Implementation

SpacePermission copyWith(
    {int? id,
    SpacePermissionSubjects? subjects,
    OperationCheckResult? operation,
    bool? anonymousAccess,
    bool? unlicensedAccess}) {
  return SpacePermission(
    id: id ?? this.id,
    subjects: subjects ?? this.subjects,
    operation: operation ?? this.operation,
    anonymousAccess: anonymousAccess ?? this.anonymousAccess,
    unlicensedAccess: unlicensedAccess ?? this.unlicensedAccess,
  );
}