copyWith method
Implementation
Error copyWith(
{enums.ErrorErrorType? errorType,
String? errorCode,
String? errorMessage,
String? displayMessage,
String? requestId,
List<Object>? causes,
double? status,
String? documentationUrl,
String? suggestedAction}) {
return Error(
errorType: errorType ?? this.errorType,
errorCode: errorCode ?? this.errorCode,
errorMessage: errorMessage ?? this.errorMessage,
displayMessage: displayMessage ?? this.displayMessage,
requestId: requestId ?? this.requestId,
causes: causes ?? this.causes,
status: status ?? this.status,
documentationUrl: documentationUrl ?? this.documentationUrl,
suggestedAction: suggestedAction ?? this.suggestedAction);
}