Add feature to deserialize generic type