Construct models from json