title: Retrofit requestbody using @FieldMap
body: <p>I need to send a large data class over Http request.
  Here is my class:</p>
  <pre><code>data class User(
      val uid: String,
      val mobNum: String,
      val isValidated: Boolean,
      val isActivated: Boolean,
      val gender: String,
     ...
     ...
     ...)
  </code></pre>
  <p>Here is the Api service I use for updating a part of this data. If needed.</p>
  <pre><code>internal interface ProfileApi {    
      @POST(&quot;update/profile&quot;)
      @FormUrlEncoded
      fun updatePending(
          @Field(&quot;_id&quot;) uid: String,
          @Field(&quot;mobile_num&quot;)  mobNum: String,
          @Field(&quot;is_validated&quot;) isValidated: Boolean,
          @Field(&quot;is_activated&quot;) isActivated: Boolean,
          @Field(&quot;gender&quot;) gender: String,
          .....
          ....
      ): Call&lt;ResponseClass&gt;
  }
  </code></pre>
  <p>But this time I need to send request of all 50 or more fields. How can I map data-keys to field-keys and corresponding value with @FieldMap or any other method.
  thanks.</p>