This commit is contained in:
machiav3lli 2022-04-08 02:25:01 +02:00
parent d2c0a997d2
commit 174be88134

View File

@ -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))