mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-13 02:49:20 +00:00
Clean up
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user