userStatedIncomeSourceCategoryListFromJson function
List<UserStatedIncomeSourceCategory>
userStatedIncomeSourceCategoryListFromJson(
- List? userStatedIncomeSourceCategory, [
- List<
UserStatedIncomeSourceCategory> ? defaultValue
Implementation
List<enums.UserStatedIncomeSourceCategory>
userStatedIncomeSourceCategoryListFromJson(
List? userStatedIncomeSourceCategory, [
List<enums.UserStatedIncomeSourceCategory>? defaultValue,
]) {
if (userStatedIncomeSourceCategory == null) {
return defaultValue ?? [];
}
return userStatedIncomeSourceCategory
.map((e) => userStatedIncomeSourceCategoryFromJson(e.toString()))
.toList();
}