copyWith method

SecurityScheme copyWith({
  1. int? defaultSecurityLevelId,
  2. String? description,
  3. int? id,
  4. List<SecurityLevel>? levels,
  5. String? name,
  6. String? self,
})

Implementation

SecurityScheme copyWith(
    {int? defaultSecurityLevelId,
    String? description,
    int? id,
    List<SecurityLevel>? levels,
    String? name,
    String? self}) {
  return SecurityScheme(
    defaultSecurityLevelId:
        defaultSecurityLevelId ?? this.defaultSecurityLevelId,
    description: description ?? this.description,
    id: id ?? this.id,
    levels: levels ?? this.levels,
    name: name ?? this.name,
    self: self ?? this.self,
  );
}