Algolio error in kotlin

RESPONSE https://latency-dsn.algolia.net/1/indexes/instant_search/query failed with exception: kotlinx.serialization.MissingFieldException: Field ‘order’ is required for type with serial name ‘com.algolia.search.model.rule.FacetValuesOrder’, but it was missing
Does anyone know how to fix this? I’m getting this error in kotlin