Server deserialization of case classes.