Added generic types to object deserialisation constructor