investmentAccountSubtypeListFromJson function
List<InvestmentAccountSubtype>
investmentAccountSubtypeListFromJson(
- List? investmentAccountSubtype, [
- List<
InvestmentAccountSubtype> ? defaultValue
Implementation
List<enums.InvestmentAccountSubtype> investmentAccountSubtypeListFromJson(
List? investmentAccountSubtype, [
List<enums.InvestmentAccountSubtype>? defaultValue,
]) {
if (investmentAccountSubtype == null) {
return defaultValue ?? [];
}
return investmentAccountSubtype
.map((e) => investmentAccountSubtypeFromJson(e.toString()))
.toList();
}