copyWith method

SpacePermissionV2 copyWith({
  1. int? id,
  2. PermissionSubject? subject,
  3. SpacePermissionV2Operation? operation,
  4. GenericLinks? links,
})

Implementation

SpacePermissionV2 copyWith(
    {int? id,
    PermissionSubject? subject,
    SpacePermissionV2Operation? operation,
    GenericLinks? links}) {
  return SpacePermissionV2(
    id: id ?? this.id,
    subject: subject ?? this.subject,
    operation: operation ?? this.operation,
    links: links ?? this.links,
  );
}