Dictionary to model