transform
Function to transform data when loading or saving data.
This can be used for encryption/decryption. By defualt this is the identity function.
Parameters
data
the data to transform.
isLoading
set to true
when loading data, false
when saving data.