userStatedIncomeSourceCategoryListToJson function
List<String>
userStatedIncomeSourceCategoryListToJson(
- List<
UserStatedIncomeSourceCategory> ? userStatedIncomeSourceCategory
Implementation
List<String> userStatedIncomeSourceCategoryListToJson(
List<enums.UserStatedIncomeSourceCategory>?
userStatedIncomeSourceCategory) {
if (userStatedIncomeSourceCategory == null) {
return [];
}
return userStatedIncomeSourceCategory
.map((e) => enums.$UserStatedIncomeSourceCategoryMap[e]!)
.toList();
}