copyWith method
Implementation
ResponseBodyApi<T> copyWith({
bool? success,
String? code,
String? message,
T? data,
}) {
return ResponseBodyApi<T>(
success: success ?? this.success,
code: code ?? this.code,
message: message ?? this.message,
data: data ?? this.data,
);
}