fromJson static method

MatchLevel fromJson(
  1. dynamic json
)

Implementation

static MatchLevel fromJson(dynamic json) {
  for (final value in values) {
    if (value.raw == json) return value;
  }
  throw ArgumentError.value(json, "raw", "No enum value with that value");
}