Skip to content
Snippets Groups Projects
Commit 31c75094 authored by Kamal Bramwell's avatar Kamal Bramwell
Browse files

Fixed decode bug

parent a86b37ee
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ interface BindingsModel {
val data = list.map {
(it as? ByteArray)?.toBase64String() ?: it
}
return Gson().toJson(data.toTypedArray(), T::class.java).encodeToByteArray()
return Gson().toJson(data.toTypedArray(), Array<T>::class.java).encodeToByteArray()
}
inline fun <reified T> decode(data: ByteArray?): T? {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment