asResourceOrNull

Casts this EventReference as a Resource and retrieves its kotlin.String value. Returns null if the EventReference is not a Resource.