refactored fromList method to avoid compile time error with BaseModel