chapterWithContentResponseModelStateListToJson function

List<String> chapterWithContentResponseModelStateListToJson(
  1. List<ChapterWithContentResponseModelState>? chapterWithContentResponseModelState
)

Implementation

List<String> chapterWithContentResponseModelStateListToJson(
    List<enums.ChapterWithContentResponseModelState>?
        chapterWithContentResponseModelState) {
  if (chapterWithContentResponseModelState == null) {
    return [];
  }

  return chapterWithContentResponseModelState.map((e) => e.value!).toList();
}