と言うこと

the fact that; the content of what…

→ と
phrase Very common #919
the fact that; the content of what… Here, it turns the preceding statement into a noun phrase, referring to its fact or content—not to the act of saying it.
JA: 彼女が病気だと言うことを考慮に入れるべきです。
EN: You should take into account the fact that she is ill.

私の時計は故障しているかもしれないと言うことがふと頭に浮かんだ。

It suddenly occurred to me that my watch might be broken.

彼が泥棒と言うことが判明した。

It turned out that he was a thief.

それに、君は僕たちが到着したと言うことさえ言わなかったよ。

Besides, you didn’t even mention that we had arrived.

彼女が病気だと言うことを考慮に入れるべきです。

You should take into consideration that she is sick.