paymentConsentPeriodicIntervalListToJson function

List<String> paymentConsentPeriodicIntervalListToJson(
  1. List<PaymentConsentPeriodicInterval>? paymentConsentPeriodicInterval
)

Implementation

List<String> paymentConsentPeriodicIntervalListToJson(
    List<enums.PaymentConsentPeriodicInterval>?
        paymentConsentPeriodicInterval) {
  if (paymentConsentPeriodicInterval == null) {
    return [];
  }

  return paymentConsentPeriodicInterval
      .map((e) => enums.$PaymentConsentPeriodicIntervalMap[e]!)
      .toList();
}