getUnmaskedValues method

Future<Map<String, String>> getUnmaskedValues()

Returns a Map of a payment product field id and the corresponding unmasked value

Implementation

Future<Map<String, String>> getUnmaskedValues() async {
  final allUnmaskedValuesString =
      await PaymentRequestMasker.unmaskedValues(this);
  if (allUnmaskedValuesString != null) {
    final Map<String, String> allUnmaskedValuesMap =
        Map.castFrom(json.decode(allUnmaskedValuesString));
    return allUnmaskedValuesMap;
  }
  return <String, String>{};
}