copyWith method
Implementation
SimpleErrorCollection copyWith(
{List<String>? errorMessages,
Map<String, dynamic>? errors,
int? httpStatusCode}) {
return SimpleErrorCollection(
errorMessages: errorMessages ?? this.errorMessages,
errors: errors ?? this.errors,
httpStatusCode: httpStatusCode ?? this.httpStatusCode,
);
}