fromValue static method
Gets a possible ShouldAllowDeprecatedTLSAction instance from int value.
Implementation
static ShouldAllowDeprecatedTLSAction? fromValue(int? value) {
if (value != null) {
try {
return ShouldAllowDeprecatedTLSAction.values
.firstWhere((element) => element.toValue() == value);
} catch (e) {
return null;
}
}
return null;
}