fromJson static method

BooleanString fromJson(
  1. dynamic json
)

Implementation

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