toMap property

Map<String, String?> get toMap

get data in map format

Implementation

Map<String, String?> get toMap {
  return {
    //try to auto generate string
    // ?? StrHelper.getRandomString(16)
    "referenceId": referenceId,
    "price": amountStr,
    "currency": FPayPalCurrencyCodeHelper.convertFromEnumToString(
      currencyCode,
    ),
  };
}