title: Kotlin Firebase set Multiple Values to Database
body: <p>How can i set multiple values to firebase database using Kotlin? Something similar to the code below.</p>
  
  <pre><code>  val database = FirebaseDatabase.getInstance()
    val myRef = database.getReference("users")
  
    var ref = myRef.child(firebaseUser.uid)
    ref.setValue({ "username": username,
                              "email": email,
                              "rank": 0,
                              "message_count": 0,
                              "date_joined": date,
                              "purchase": false,
                              "initial_payment_option": "N/A",
                              "current_payment_option": "Free",
                              "subscription": "N/A",
                              "date_purchased": "N/A",
                              "family_discount": "N/A"})
  </code></pre>
  
  <p>Rules</p>
  
  <pre><code>{
    "rules": {
      "users":{
       ".read": "true",
       ".write": "true",
  </code></pre>