copyWith method
Implementation
Expectation copyWith({
String? path,
String? message,
dynamic value,
String? code,
Map<String, Object?>? data,
}) {
return Expectation(
path: path ?? this.path,
message: message ?? this.message,
value: value ?? this.value,
code: code ?? this.code,
data: data ?? this.data,
);
}