5#ifndef FLUTTER_SHELL_PLATFORM_COMMON_JSON_MESSAGE_CODEC_H_
6#define FLUTTER_SHELL_PLATFORM_COMMON_JSON_MESSAGE_CODEC_H_
8#include <rapidjson/document.h>
10#include "flutter/shell/platform/common/client_wrapper/include/flutter/message_codec.h"
33 const uint8_t* binary_message,
34 const size_t message_size)
const override;
38 const rapidjson::Document&
message)
const override;
static const JsonMessageCodec & GetInstance()
std::unique_ptr< rapidjson::Document > DecodeMessageInternal(const uint8_t *binary_message, const size_t message_size) const override
JsonMessageCodec()=default
JsonMessageCodec(JsonMessageCodec const &)=delete
JsonMessageCodec & operator=(JsonMessageCodec const &)=delete
~JsonMessageCodec()=default
std::unique_ptr< std::vector< uint8_t > > EncodeMessageInternal(const rapidjson::Document &message) const override