chapterWithContentResponseModelStateListToJson function
List<String>
chapterWithContentResponseModelStateListToJson(
- List<
ChapterWithContentResponseModelState> ? chapterWithContentResponseModelState
Implementation
List<String> chapterWithContentResponseModelStateListToJson(
List<enums.ChapterWithContentResponseModelState>?
chapterWithContentResponseModelState) {
if (chapterWithContentResponseModelState == null) {
return [];
}
return chapterWithContentResponseModelState.map((e) => e.value!).toList();
}