getFirstWhere

abstract fun <T : Any> getFirstWhere(collection: ModelCollection<T, C>, filter: (Model<T>) -> Boolean): Model<T>

Gets the first model from the Collection and passes the provided filter.

Throws

if no model was found