@@ -37,9 +37,9 @@ public CMAResponseConvertor(Response<ResponseBody> response) {
3737 /**
3838 * The function returns the response body as a string if it is not null,
3939 * otherwise it returns null.
40- *
41- * @throws IOException if an I/O error occurs
40+ *
4241 * @return The method is returning a String.
42+ * @throws IOException if an I/O error occurs
4343 */
4444 public String asString () throws IOException {
4545 return this .response .body () != null ? this .response .body ().string () : null ;
@@ -48,10 +48,10 @@ public String asString() throws IOException {
4848 /**
4949 * The function converts the response body to a JSON string using the Gson
5050 * library.
51- *
52- * @throws IOException if an I/O error occurs
51+ *
5352 * @return The method is returning a JSON string representation of the response
54- * body.
53+ * body.
54+ * @throws IOException if an I/O error occurs
5555 */
5656 public String asJson () throws IOException {
5757 String body = this .response .body () != null ? this .response .body ().string () : null ;
@@ -61,7 +61,7 @@ public String asJson() throws IOException {
6161 /**
6262 * The function takes a string as input and converts it to a JSON string using
6363 * the Gson library.
64- *
64+ *
6565 * @param string The parameter "string" is a String object that represents the
6666 * input string that you
6767 * want to convert to JSON format.
@@ -76,15 +76,15 @@ public String asJson(String string) {
7676 * The function converts a JSON response body into a Java object of the
7777 * specified class using the Gson
7878 * library.
79- *
79+ *
8080 * @param <T> the type of the parameter
8181 * @param tClass The `tClass` parameter is a `Class` object that represents the
8282 * type of the model class
8383 * that you want to convert the response body to.
84- * @throws IOException if an I/O error occurs
8584 * @return The method is returning an object of type T, which is determined by
86- * the input parameter
87- * tClass.
85+ * the input parameter
86+ * tClass.
87+ * @throws IOException if an I/O error occurs
8888 */
8989 public <T > T toModel (Class <T > tClass ) throws IOException {
9090 Objects .requireNonNull (tClass , MODEL_NULL_CHECK );
@@ -96,12 +96,9 @@ public <T> T toModel(Class<T> tClass) throws IOException {
9696 * It accepts the modal class and the string data response to return the model
9797 * class
9898 *
99- * @param tClass
100- * the class
101- * @param response
102- * data response
103- * @param <T>
104- * the model class type
99+ * @param tClass the class
100+ * @param response data response
101+ * @param <T> the model class type
105102 * @return the model class
106103 */
107104 public <T > T toModel (Class <T > tClass , String response ) {
@@ -120,7 +117,7 @@ public <T> T toModel(Class<T> tClass, Response<ResponseBody> response) throws IO
120117 /**
121118 * The function `requestBody` returns the request object associated with a given
122119 * call instance.
123- *
120+ *
124121 * @param callInstance An instance of the Call class, which represents a network
125122 * request in OkHttp.
126123 * @return The method is returning a Request object.
0 commit comments