fromNativeErrorValue static method
Implementation
static ResetFailureReason fromNativeErrorValue(String value) {
switch (value) {
case "SDK_INIT_IN_PROGRESS":
return ResetFailureReason.sdkInitInProgress;
case "SDK_RESET_IN_PROGRESS":
return ResetFailureReason.sdkResetInProgress;
case "EXCEPTION_OR_ERROR":
return ResetFailureReason.exceptionOrError;
default:
throw ("Unsupported reset failure reason: $value");
}
}