AMQP Method code generation and serialization