Converts the metadata to JSON.
@override Map<String, dynamic> toJson() { return {'bytes': BytesUtils.toHexString(value)}; }