encode method

Blob encode(
  1. GeneratedMessage msg
)

Implementation

Blob encode(GeneratedMessage msg) {
  return Blob(
      codec: Codec.CODEC_PROTO,
      payload: msg.writeToBuffer().toList(),
      messageType: fullName);
}