Decoder function to convert raw data object into a user-defined data type.
data
Useful with embedded content.
typedef DataDecoder = Object? Function(Object data);