Group Group Group Group Group Group Group Group Group

Question for Android Networking: Fundamentals (Kotlin Serialize)

There is an update with the parser where the original code has been deprecated
kotlin 1.3.61, converter 0.4.0

Retrofit.Builder()
  .client(buildClient())
  .baseUrl(BASE_URL)
  .addConverterFactory(Json.nonstrict.asConverterFactory(contentType))
  .build()

i changed to
kotlin 1.4.0, converter 0.6.0

Retrofit.Builder()
    .client(buildClient())
    .baseUrl(BASE_URL)
    .addConverterFactory(Json { ignoreUnknownKeys = true }.asConverterFactory(contentType))
    .build()

and also added default value in Task class with var in order for it to works,

I was wondering if this is the right way to do it?
and how do people usually look for how to implement something if that something has been updated? by look into the library source code?