It sounds like she basically took the story of a slave woman from the Islamic world and just changed the location and the religion. Hey Presto, instant money.
A bit of it ( how the heroine of the title is impregnated ) is right out of the Bible....how Abraham impregnates Hagar, Sarah's "handmaid"; hence the title of the series, the movie and the book both were based on.