serialize method

void serialize(
  1. TypeEncoder encoder
)
override

Implementation

void serialize(TypeEncoder encoder) {
  encoder
    ..writer.addLast(Uint8List.fromList(ascii.encode("AMQP")))
    ..writeUInt8(protocolVersion!)
    ..writeUInt8(majorVersion!)
    ..writeUInt8(minorVersion!)
    ..writeUInt8(revision!);
}