workoutSourceListToJson function
Implementation
List<String> workoutSourceListToJson(List<enums.WorkoutSource>? workoutSource) {
if (workoutSource == null) {
return [];
}
return workoutSource.map((e) => e.value!).toList();
}
List<String> workoutSourceListToJson(List<enums.WorkoutSource>? workoutSource) {
if (workoutSource == null) {
return [];
}
return workoutSource.map((e) => e.value!).toList();
}