toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case LifecycleErrorCode.success:
      return 'Success';
    case LifecycleErrorCode.scriptMissing:
      return 'ScriptMissing';
    case LifecycleErrorCode.scriptNotExecutable:
      return 'ScriptNotExecutable';
    case LifecycleErrorCode.scriptTimedOut:
      return 'ScriptTimedOut';
    case LifecycleErrorCode.scriptFailed:
      return 'ScriptFailed';
    case LifecycleErrorCode.unknownError:
      return 'UnknownError';
  }
}