mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 19:32:16 +00:00
Clean up
This commit is contained in:
parent
d2c0a997d2
commit
174be88134
@ -21,14 +21,6 @@ object Converters {
|
||||
@JvmStatic
|
||||
fun toByteArray(list: List<String>): ByteArray = list.toString().toByteArray()
|
||||
|
||||
@TypeConverter
|
||||
@JvmStatic
|
||||
fun toProduct(byteArray: ByteArray) = Product.fromJson(String(byteArray))
|
||||
|
||||
@TypeConverter
|
||||
@JvmStatic
|
||||
fun toByteArray(product: Product) = product.toJSON().toByteArray()
|
||||
|
||||
@TypeConverter
|
||||
@JvmStatic
|
||||
fun toAuthor(byteArray: ByteArray) = Author.fromJson(String(byteArray))
|
||||
|
Loading…
x
Reference in New Issue
Block a user