copyWith method
Returns a copy of this instance with updated fields.
Implementation
SecurityRequirement copyWith({String? name, List<String>? scopes}) {
return SecurityRequirement(
name: name ?? this.name,
scopes: scopes ?? this.scopes,
);
}