fromJson static method

SupportedLanguage fromJson(
  1. dynamic json
)

Implementation

static SupportedLanguage 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");
}