Events coming via an API Gateway can have content with bodies encoded as Base64. This is especially true for HTML API Gateways (as opposed to REST API Gateways).
This function propagates NULL
s. That is, from_base64(NULL)
returns
NULL
.
from_base64(x)
character
from_base64("eyJudW1iZXIiOjd9")
#> [1] "{\"number\":7}"