callMatchingAPI method

void callMatchingAPI({
  1. String? apiKey,
  2. String? token,
  3. required Uint8List image,
  4. required List<String> barcodes,
  5. required Map<String, dynamic> onDeviceResponse,
  6. Map<String, dynamic>? recipient,
  7. Map<String, dynamic>? sender,
  8. Map<String, dynamic>? options,
  9. Map<String, dynamic>? metadata,
})

Implementation

void callMatchingAPI(
    {String? apiKey,
    String? token,
    required Uint8List image,
    required List<String> barcodes,
    required Map<String, dynamic> onDeviceResponse,
    Map<String, dynamic>? recipient,
    Map<String, dynamic>? sender,
    Map<String, dynamic>? options,
    Map<String, dynamic>? metadata}) async {
  await _channel.invokeMethod('callMatchingAPI', {
    'apiKey': apiKey,
    'token': token,
    'byteArrayImage': image,
    'barcodes': barcodes,
    'onDeviceResponse': jsonEncode(onDeviceResponse),
    'recipient': recipient,
    'sender': sender,
    'options': options,
    'metadata': metadata
  });
}