investmentTransactionSubtypeListFromJson function
List<InvestmentTransactionSubtype>
investmentTransactionSubtypeListFromJson(
- List? investmentTransactionSubtype, [
- List<
InvestmentTransactionSubtype> ? defaultValue
Implementation
List<enums.InvestmentTransactionSubtype>
investmentTransactionSubtypeListFromJson(
List? investmentTransactionSubtype, [
List<enums.InvestmentTransactionSubtype>? defaultValue,
]) {
if (investmentTransactionSubtype == null) {
return defaultValue ?? [];
}
return investmentTransactionSubtype
.map((e) => investmentTransactionSubtypeFromJson(e.toString()))
.toList();
}