Modelling the broadband emission from the white dwarf binary system AR Scorpii