Serializer for ByteArray that converts to/from hex string. This matches the Dart-side expectation from the KSP-generated code which uses hex encoding for ByteArray fields.