copyWith method
ResponseModel
copyWith({
- HeaderModel? header,
- int? responseCode,
- String? responseMsg,
- String? rawResponse,
- String? scannedData,
copy new instance of ResponseModel.
Implementation
ResponseModel copyWith({
HeaderModel? header,
int? responseCode,
String? responseMsg,
String? rawResponse,
String? scannedData,
}) {
return ResponseModel(
header: header ?? this.header,
responseCode: responseCode ?? this.responseCode,
responseMsg: responseMsg ?? this.responseMsg,
rawResponse: rawResponse ?? this.rawResponse,
scannedData: scannedData ?? this.scannedData,
);
}