From fbe121745655394baf35a24a5b3b5d40a031b62d Mon Sep 17 00:00:00 2001 From: Sad Ellie Date: Mon, 9 May 2022 14:46:24 +0300 Subject: [PATCH] Tiny fix to get rid of warning --- .../sadellie/unitto/data/units/remote/CurrencyUnitResponse.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/sadellie/unitto/data/units/remote/CurrencyUnitResponse.kt b/app/src/main/java/com/sadellie/unitto/data/units/remote/CurrencyUnitResponse.kt index 566a2a86..69a77dc4 100644 --- a/app/src/main/java/com/sadellie/unitto/data/units/remote/CurrencyUnitResponse.kt +++ b/app/src/main/java/com/sadellie/unitto/data/units/remote/CurrencyUnitResponse.kt @@ -22,7 +22,7 @@ class CurrencyAdapter { @Suppress("UNUSED", "UNUSED_PARAMETER") @ToJson fun toJson(card: CurrencyUnitResponse): String? = null - @Suppress("UNCHECKED_CAST") + @Suppress("UNUSED", "UNCHECKED_CAST") @FromJson fun fromJson(response: Map): CurrencyUnitResponse { val pairsBD: Map = (response[response.keys.elementAt(1)] as Map) .mapValues { it.value.toBigDecimal() }