No it is based on a novel written by Edith Nesbit published in serial form in 1905 as a stand alone work.
I guess we’ve all read/watched the same things. I love that I read your post and comments, and as I read I thought, “Oh, Jenny Agutter from Log— yeah! Oh, David Bamber, he was in Pri— yeah! LOL... hm... I wonder if this is like The Boxc— yeah. Oh, no. Okay.”