fromValue static method

RetentionPeriodUnits fromValue(
  1. String value
)

Implementation

static RetentionPeriodUnits fromValue(String value) =>
    values.firstWhere((e) => e.value == value,
        orElse: () => RetentionPeriodUnits._(value));