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