Generic types for deserialization