fromJS static method

Implementation

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