fromJson static method

EditType fromJson(
  1. dynamic json
)

Implementation

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