ChatShared: Add from json constructor to packets.