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