Deserializarion method