paymentInitiationConsentStatusListToJson function
List<String>
paymentInitiationConsentStatusListToJson(
- List<
PaymentInitiationConsentStatus> ? paymentInitiationConsentStatus
Implementation
List<String> paymentInitiationConsentStatusListToJson(
List<enums.PaymentInitiationConsentStatus>?
paymentInitiationConsentStatus) {
if (paymentInitiationConsentStatus == null) {
return [];
}
return paymentInitiationConsentStatus
.map((e) => enums.$PaymentInitiationConsentStatusMap[e]!)
.toList();
}