getModelFromPayload

open fun getModelFromPayload(payloads: List<Any>, modelId: Long): EpoxyModel<out Any>

Looks through the payloads list and returns the first model found with the given model id. Thisassumes that the payloads list will only contain objects of type DiffPayload, and willthrow if an unexpected type is found.