fromJS static method

DetachReason fromJS(
  1. String value
)

Implementation

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