paymentInitiationPaymentStatusListToJson function
List<String>
paymentInitiationPaymentStatusListToJson(
- List<
PaymentInitiationPaymentStatus> ? paymentInitiationPaymentStatus
Implementation
List<String> paymentInitiationPaymentStatusListToJson(
List<enums.PaymentInitiationPaymentStatus>?
paymentInitiationPaymentStatus) {
if (paymentInitiationPaymentStatus == null) {
return [];
}
return paymentInitiationPaymentStatus
.map((e) => enums.$PaymentInitiationPaymentStatusMap[e]!)
.toList();
}