In this sample script, all pages in the Figma file are retrieved and the retrieved pages are put to new Google Slides as the image.
This post is useful for not only showing how to insert images into Google Slides, but also for featuring Figma which might be a useful tool for G Suite Add-on developers looking for an easy way to prototype/design application interfaces.