encode Fields
Encodes the message content into serializable key-value pairs.
Called when sending a message. Values must be JSON-serializable types: String, Int, Long, Double, Boolean, List, or Map.
Return
a map of field names to their serializable values