Create model from json