decodePlatformErrorCodes function

PlatformErrorCodes? decodePlatformErrorCodes(
  1. dynamic value
)

Implementation

PlatformErrorCodes? decodePlatformErrorCodes (dynamic value) {
  if(value == null) {
    return null;
  }
  if(_$PlatformErrorCodesValueMap.containsKey(value)){
    return _$PlatformErrorCodesValueMap[value];
  }

  return PlatformErrorCodes.ProtectedInvalidEnumValue;
}