mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-19 08:45:27 +02:00
Tiny fix to get rid of warning
This commit is contained in:
parent
35504f7927
commit
fbe1217456
@ -22,7 +22,7 @@ class CurrencyAdapter {
|
|||||||
@Suppress("UNUSED", "UNUSED_PARAMETER")
|
@Suppress("UNUSED", "UNUSED_PARAMETER")
|
||||||
@ToJson fun toJson(card: CurrencyUnitResponse): String? = null
|
@ToJson fun toJson(card: CurrencyUnitResponse): String? = null
|
||||||
|
|
||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNUSED", "UNCHECKED_CAST")
|
||||||
@FromJson fun fromJson(response: Map<String, Any>): CurrencyUnitResponse {
|
@FromJson fun fromJson(response: Map<String, Any>): CurrencyUnitResponse {
|
||||||
val pairsBD: Map<String, BigDecimal> = (response[response.keys.elementAt(1)] as Map<String, Double>)
|
val pairsBD: Map<String, BigDecimal> = (response[response.keys.elementAt(1)] as Map<String, Double>)
|
||||||
.mapValues { it.value.toBigDecimal() }
|
.mapValues { it.value.toBigDecimal() }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user