fromJson static method

CategoricalPhysical fromJson(
  1. String value
)

Returns the width whose protocol name is value.

Throws a FormatException for unknown names.

Implementation

static CategoricalPhysical fromJson(String value) => values.firstWhere(
  (physical) => physical.json == value,
  orElse: () => throw FormatException('Unknown categorical physical: $value'),
);