copyWith method
Implementation
AtomicResponse<T> copyWith({
int? statusCode,
Map<String, String>? headers,
String? body,
bool? isSuccess,
T? data,
dynamic rawData,
}) {
return AtomicResponse<T>(
statusCode: statusCode ?? this.statusCode,
headers: headers ?? this.headers,
body: body ?? this.body,
isSuccess: isSuccess ?? this.isSuccess,
data: data ?? this.data,
rawData: rawData ?? this.rawData,
);
}