chapterWithContentResponseModelStateListFromJson function
List<ChapterWithContentResponseModelState>
chapterWithContentResponseModelStateListFromJson(
- List? chapterWithContentResponseModelState, [
- List<
ChapterWithContentResponseModelState> ? defaultValue
Implementation
List<enums.ChapterWithContentResponseModelState>
chapterWithContentResponseModelStateListFromJson(
List? chapterWithContentResponseModelState, [
List<enums.ChapterWithContentResponseModelState>? defaultValue,
]) {
if (chapterWithContentResponseModelState == null) {
return defaultValue ?? [];
}
return chapterWithContentResponseModelState
.map((e) => chapterWithContentResponseModelStateFromJson(e.toString()))
.toList();
}