public static FirestoreError Convert()

in firestore/src/internal/Enums.cs [48:106]


    public static FirestoreError Convert(ErrorProxy error) {
          switch (error) {

            case ErrorProxy.Ok:
              return FirestoreError.Ok;

            case ErrorProxy.Cancelled:
              return FirestoreError.Cancelled;

            case ErrorProxy.Unknown:
              return FirestoreError.Unknown;

            case ErrorProxy.InvalidArgument:
              return FirestoreError.InvalidArgument;

            case ErrorProxy.DeadlineExceeded:
              return FirestoreError.DeadlineExceeded;

            case ErrorProxy.NotFound:
              return FirestoreError.NotFound;

            case ErrorProxy.AlreadyExists:
              return FirestoreError.AlreadyExists;

            case ErrorProxy.PermissionDenied:
              return FirestoreError.PermissionDenied;

            case ErrorProxy.ResourceExhausted:
              return FirestoreError.ResourceExhausted;

            case ErrorProxy.FailedPrecondition:
              return FirestoreError.FailedPrecondition;

            case ErrorProxy.Aborted:
              return FirestoreError.Aborted;

            case ErrorProxy.OutOfRange:
              return FirestoreError.OutOfRange;

            case ErrorProxy.Unimplemented:
              return FirestoreError.Unimplemented;

            case ErrorProxy.Internal:
              return FirestoreError.Internal;

            case ErrorProxy.Unavailable:
              return FirestoreError.Unavailable;

            case ErrorProxy.DataLoss:
              return FirestoreError.DataLoss;

            case ErrorProxy.Unauthenticated:
              return FirestoreError.Unauthenticated;

            default:
              throw new System.ArgumentOutOfRangeException("Unexpected enum value: " +
                  error.ToString());
          }
    }