Convert JSON to file system in firebase cloud function

I have this json and i want to convert it to file system which i will zip later and convert it to base64 and upload it to firebase storage. I want to get this done in a firebase cloud function.

"-L1ssSkLLlOLM7zpXz6M" : {
    "scenes" : [ {
      "scene" : {
        "slides" : [ {
          "image" : "This is base64"
        }, {
          "image" : "This is base64"
        }, {
          "image" : "This is base64"
        }, {
          "image" : "This is base64"
        } ]
      },
      "text" : "test 3"
    }, {
      "scene" : {
        "slides" : [ {
          "image" : "This is base64"
        }, {
          "image" : "This is base64"
        }, {
          "image" : "This is base64"
        }, {
          "image" : "This is base64"
        }, {
          "image" : "This is base64"
        } ]
      },
      "text" : "test 4"
    } ],
    "title" : "Hello"
  }

Is it possible to do so ?

Here is what i want the folder to look like https://ufile.io/mhrhz