paymentChannelListFromJson function
List<PaymentChannel>
paymentChannelListFromJson(
- List? paymentChannel, [
- List<
PaymentChannel> ? defaultValue
Implementation
List<enums.PaymentChannel> paymentChannelListFromJson(
List? paymentChannel, [
List<enums.PaymentChannel>? defaultValue,
]) {
if (paymentChannel == null) {
return defaultValue ?? [];
}
return paymentChannel
.map((e) => paymentChannelFromJson(e.toString()))
.toList();
}