W3cubDocs

/Dart 2

PaymentRequest constructor

PaymentRequest(List<Map> methodData, Map details, [ 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);
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-html/PaymentRequest/PaymentRequest.html