title: how to convert enum request in kotlin?
body: <p>I am using Kotlin with spring. I want to convert request which comes from the front end. My enum class is: </p>
  
  <pre><code>enum class Type() {
      PARTIAL,
      FULL;
  
      fun equal(type:String){
          return this.equal(type.toUpperCase())
      }
  }
  </code></pre>
  
  <p>My get api request is like this</p>
  
  <pre><code>fun updateUserInfo(user: User, @Valid @RequestBody request: RequestBody) {...}
  </code></pre>
  
  <p>My Request body is like this: </p>
  
  <pre><code>class RequestBody private constructor() {
  
      @NotNull
      lateinit var type: Type
  
  
      @NotBlank
      @Size(max = 40)
      lateinit var fullName: String
  }
  </code></pre>
  
  <p>My question is this frontend might using small casing like <code>partial,full</code>. I want to add modifier irrespective of anything frontend send my Type enum should always give an upper case in <strong>updateUserInfo</strong> function. How can I do it?</p>