chapterWithContentResponseModelStateNullableFromJson function
ChapterWithContentResponseModelState?
chapterWithContentResponseModelStateNullableFromJson(
- Object? chapterWithContentResponseModelState, [
- ChapterWithContentResponseModelState? defaultValue
Implementation
enums.ChapterWithContentResponseModelState?
chapterWithContentResponseModelStateNullableFromJson(
Object? chapterWithContentResponseModelState, [
enums.ChapterWithContentResponseModelState? defaultValue,
]) {
if (chapterWithContentResponseModelState == null) {
return null;
}
return enums.ChapterWithContentResponseModelState.values.firstWhereOrNull(
(e) => e.value == chapterWithContentResponseModelState) ??
defaultValue;
}