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