Fire retardant functionalized polyol by phosphonate monomer insertion