fromJS static method

Error fromJS(
  1. String value
)

Implementation

static Error fromJS(String value) =>
    values.firstWhere((e) => e.value == value);