copyWith method

SecurityLevel copyWith({
  1. String? description,
  2. String? id,
  3. bool? isDefault,
  4. String? issueSecuritySchemeId,
  5. String? name,
  6. String? self,
})

Implementation

SecurityLevel copyWith(
    {String? description,
    String? id,
    bool? isDefault,
    String? issueSecuritySchemeId,
    String? name,
    String? self}) {
  return SecurityLevel(
    description: description ?? this.description,
    id: id ?? this.id,
    isDefault: isDefault ?? this.isDefault,
    issueSecuritySchemeId:
        issueSecuritySchemeId ?? this.issueSecuritySchemeId,
    name: name ?? this.name,
    self: self ?? this.self,
  );
}