PaymentRequest constructor

PaymentRequest(
  1. List<Map> methodData,
  2. Map details,
  3. [Map options]
)

Implementation

factory PaymentRequest(List<Map> methodData, Map details, [Map options]) {
  var methodData_1 = [];
  for (var i in methodData) {
    methodData_1.add(convertDartToNative_Dictionary(i));
  }
  if (options != null) {
    var details_1 = convertDartToNative_Dictionary(details);
    var options_2 = convertDartToNative_Dictionary(options);
    return PaymentRequest._create_1(methodData_1, details_1, options_2);
  }
  var details_1 = convertDartToNative_Dictionary(details);
  return PaymentRequest._create_2(methodData_1, details_1);
}