serialize

abstract fun <T> serialize(value: T, type: TypeRef<T>): ByteArray