toMap method

Map<String, dynamic> toMap()

Converts the HVBarcodeConfig object to a Map representation.

Use this method to convert the HVBarcodeConfig object into a Map that can be used for serialization or sending as parameters to the platform-specific code.

Implementation

Map<String, dynamic> toMap() {
  return {
    HyperSnapSDKConstants.qrShouldShowInstructionPage:
        shouldShowInstructionPage,
    HyperSnapSDKConstants.qrScanUIStrings: hvBarcodeScanUIStrings?.toMap(),
  };
}