epoxy-adapter / com.airbnb.epoxy / DiffPayload / getModelFromPayload

getModelFromPayload

@Nullable open static fun getModelFromPayload(payloads: MutableList<Any!>!, modelId: Long): EpoxyModel<*>?

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