convertListToJson static method

String convertListToJson(
  1. List<FPayPalPurchaseUnit> items
)

Implementation

static String convertListToJson(List<FPayPalPurchaseUnit> items) {
  return jsonEncode(
    items.map((e) => e.toMap).toList(),
  );
}