copyWith method

ProjectRoleDetails copyWith({
  1. bool? admin,
  2. bool? default$,
  3. String? description,
  4. int? id,
  5. String? name,
  6. bool? roleConfigurable,
  7. Scope? scope,
  8. String? self,
  9. String? translatedName,
})

Implementation

ProjectRoleDetails copyWith(
    {bool? admin,
    bool? default$,
    String? description,
    int? id,
    String? name,
    bool? roleConfigurable,
    Scope? scope,
    String? self,
    String? translatedName}) {
  return ProjectRoleDetails(
    admin: admin ?? this.admin,
    default$: default$ ?? this.default$,
    description: description ?? this.description,
    id: id ?? this.id,
    name: name ?? this.name,
    roleConfigurable: roleConfigurable ?? this.roleConfigurable,
    scope: scope ?? this.scope,
    self: self ?? this.self,
    translatedName: translatedName ?? this.translatedName,
  );
}