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