copyWith method
Implementation
ErrorResponse copyWith({
int? code,
String? message,
String? data,
}) {
return ErrorResponse(
code: code ?? this.code,
message: message ?? this.message,
data: data ?? this.data,
);
}
ErrorResponse copyWith({
int? code,
String? message,
String? data,
}) {
return ErrorResponse(
code: code ?? this.code,
message: message ?? this.message,
data: data ?? this.data,
);
}