Define how your object is serialized and deserialized, and this gem handles the rest.