decodePlugAvailabilityMode function

PlugAvailabilityMode? decodePlugAvailabilityMode(
  1. dynamic value
)

Implementation

PlugAvailabilityMode? decodePlugAvailabilityMode (dynamic value) {
  if(value == null) {
    return null;
  }
  if(_$PlugAvailabilityModeValueMap.containsKey(value)){
    return _$PlugAvailabilityModeValueMap[value];
  }

  return PlugAvailabilityMode.ProtectedInvalidEnumValue;
}