Serialization/deserialization of Card to/from Message