rAGIndexStatusListFromJson function

List<RAGIndexStatus> rAGIndexStatusListFromJson(
  1. List? rAGIndexStatus, [
  2. List<RAGIndexStatus>? defaultValue
])

Implementation

List<enums.RAGIndexStatus> rAGIndexStatusListFromJson(
  List? rAGIndexStatus, [
  List<enums.RAGIndexStatus>? defaultValue,
]) {
  if (rAGIndexStatus == null) {
    return defaultValue ?? [];
  }

  return rAGIndexStatus
      .map((e) => rAGIndexStatusFromJson(e.toString()))
      .toList();
}