Firebase Analytics custom event - unresolved identifier name and text
<p>I am trying to set up Firebase Analytics.
I am trying to log the following custom event inside an @IBAction that is linked to an IB button</p>

<pre><code>FIRAnalytics.logEvent(withName: "go_premium", parameters: [
  "go_premium": name as NSObject,
  "click_on_go_premium_button": text as NSObject
  ])
</code></pre>

<p>I receive the error messages:
Use of unresolved identifier text and use of unresolved identifier name.
I import Firebase in the view controller. Any ideas?
Many thanks</p>