Updated on 2026-08-14

This commit is contained in:
Tangem 2022-11-15 02:27:54 +05:00
parent d4c34f6af9
commit c70f4c5192
5 changed files with 69 additions and 29 deletions

View file

@ -0,0 +1,16 @@
package com.tangem.tap.common.moshi
import com.squareup.moshi.FromJson
import com.squareup.moshi.ToJson
import java.math.BigDecimal
/**
[REDACTED_AUTHOR]
*/
class BigDecimalAdapter {
@FromJson
fun fromJson(value: String) = BigDecimal(value)
@ToJson
fun toJson(value: BigDecimal) = value.toString()
}