https://kotlinlang.org logo
#android
Title
# android
s

Soumik

11/23/2019, 7:13 PM
Hello everyone, Can you guys help me to find the solution of this problem: https://stackoverflow.com/questions/59009872/how-to-rename-the-key-of-a-json-response-dynamically-in-retrofit2-android Sorry for providing external link, but I really got stuck at this.
d

dawidhyzy

11/24/2019, 4:01 AM
Wrong place to post this: ⚠️ Using Kotlin to build Android applications. google can answer many questions. Android Studio Integration. Android-specific Gradle. If not related to Kotlin, please consider using StackOverflow and/or http://android-united.community/.
s

Soumik

11/24/2019, 8:27 AM
Thanks for your suggestion, but my question is related with Kotlin and Android, I already posted this problem in SO, but not finding any appropriate solution that's why I posted this here. I am really sorry if I violated any rules.
d

Davor

11/24/2019, 5:27 PM
Have you tried replacing the class ResponseCurrencyConvert with a map, so you would declare it like this typealias ResponseCurrencyConvert = Map<String,Double>
d

dawidhyzy

11/25/2019, 7:53 AM
The fact that you use Kotlin doesn’t mean that this is Kotlin related. You would have same issue if you use Java.
3 Views