How can one convert a FirebaseFirestore.DocumentSnapshot to a list/map for parsing thought it afterwards?
The number of the fields varies in each document so it can't be done manually.
Nothing useful in the documentation:
exports.userDetailsForm = functions.firestore.
document('responseClientDetails/{details}').onCreate((snap, context) => {
const newValue = snap.data();
const caseReference = snap.id;
return Promise
});