copyWith method

PermissionScheme copyWith({
  1. String? description,
  2. String? expand,
  3. int? id,
  4. String? name,
  5. List<PermissionGrant>? permissions,
  6. Scope? scope,
  7. String? self,
})

Implementation

PermissionScheme copyWith(
    {String? description,
    String? expand,
    int? id,
    String? name,
    List<PermissionGrant>? permissions,
    Scope? scope,
    String? self}) {
  return PermissionScheme(
    description: description ?? this.description,
    expand: expand ?? this.expand,
    id: id ?? this.id,
    name: name ?? this.name,
    permissions: permissions ?? this.permissions,
    scope: scope ?? this.scope,
    self: self ?? this.self,
  );
}