fromJson static method

SearchTypeFacet fromJson(
  1. dynamic json
)

Implementation

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