copyWith method
Create a copy with updated values
Implementation
AuthorizationServiceConfig copyWith({
String? baseUrl,
String? apiKey,
Duration? timeout,
Map<String, String>? headers,
int? maxRetries,
Duration? retryDelay,
}) {
return AuthorizationServiceConfig(
baseUrl: baseUrl ?? this.baseUrl,
apiKey: apiKey ?? this.apiKey,
timeout: timeout ?? this.timeout,
headers: headers ?? this.headers,
maxRetries: maxRetries ?? this.maxRetries,
retryDelay: retryDelay ?? this.retryDelay,
);
}