challengeStatusFromJson function Null safety

ChallengeStatus challengeStatusFromJson(
  1. int json
)

Implementation

ChallengeStatus challengeStatusFromJson(int json) {
  return ChallengeStatus.values.firstWhere(
      (ChallengeStatus challengeStatus) => challengeStatus.toJson() == json);
}