title: Should developer create a different model of Login Request & Response
body: <p>I am using <code>gson</code> library in my demo android project. I want to know should I create a different model for login request &amp; login response in <code>json</code>.</p>
  
  <p>For the request I created like below </p>
  
  <pre><code>public class Login {
  
      private String username;
      private String password;
  
      public String getUserName() {
          return username;
      }
  
      public void setUserName(String username) {
          this.username = username;
      }
  
      public String getPassword() {
          return password;
      }
  
      public void setPassword(String password) {
          this.password = password;
      }
  }
  </code></pre>
  
  <p>Creating <code>JSON</code> from login request.</p>
  
  <pre><code>// creating JSON using GSON library
  Login mLogin = new Login();
  mLogin.setUserName(userName);
  mLogin.setPassword(password);
  
  Gson gson = new GsonBuilder().create();
  String loginJSON = gson.toJson(mLogin);
  </code></pre>
  
  <p>So here above I created a model for login request &amp; should I create a new model of login response which again in <code>json</code> or Am I not doing following correct approach.</p>