copyWith method

ScanResponseModel copyWith({
  1. int? operationType,
  2. int? responseCode,
  3. String? responseMsg,
  4. String? rawResponse,
  5. String? scannedData,
})

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,
  );
}