code: private void createService(@NonNull OkHttpClient client, String baseUrl) {
  
          Retrofit retrofit = new Retrofit.Builder()
                  .baseUrl(baseUrl)
                  .addConverterFactory(GsonConverterFactory.create(createGson()))
                  .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
                  .client(client)
                  .build();
  
          service = retrofit.create(RestApi.class);
      }
docs: Create Retrofit service for Comapi Network REST APIs.
  
  @param client REST service.