rAGIndexStatusNullableFromJson function

RAGIndexStatus? rAGIndexStatusNullableFromJson(
  1. Object? rAGIndexStatus, [
  2. 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;
}