title: if condition inside the data class constructor in kotlin
body: <p>I have a <code>data class</code> and I am creating an <code>object</code> of it. I am passing parameter values like this:</p>
  
  <pre><code>val leadDetails = AddLeadDetails(AgentId = agent.UserId,
                  Name = leadUserName.text.toString().trim(),
                  MobileNo = leadMobileNumber.text.toString().trim(),
                  ProductType = productTypeId,
                  LoanType = productTypeItem,
                  ApplicationStatus = //if condition to put value i.e if(string == "s") "One value" else "Second Value"
                  Amount = productAmountText.text.toString().trim(),
                  Pincode = pinCodeText.text.toString().trim(),
                  Remarks = customerRemarks.text.toString().trim(),
                  Type = referType!!)
  </code></pre>
  
  <p>I want to add a value to <code>ApplicationStatus</code> based on <code>if</code> condition. How can I achieve that ?</p>