package io.vertx.groovy.amqp;
public class AmqpMessage_GroovyExtension {
public static <T>java.util.List<java.lang.Object> bodyAsList(io.vertx.amqp.AmqpMessage j_receiver) {
return j_receiver.bodyAsList() != null ? j_receiver.bodyAsList().stream().map(elt -> io.vertx.core.impl.ConversionHelper.fromObject(elt)).collect(java.util.stream.Collectors.toList()) : null;
}
public static java.util.Map<String, Object> bodyAsJsonObject(io.vertx.amqp.AmqpMessage j_receiver) {
return io.vertx.core.impl.ConversionHelper.fromJsonObject(j_receiver.bodyAsJsonObject());
}
public static java.util.List<Object> bodyAsJsonArray(io.vertx.amqp.AmqpMessage j_receiver) {
return io.vertx.core.impl.ConversionHelper.fromJsonArray(j_receiver.bodyAsJsonArray());
}
public static java.util.Map<String, Object> applicationProperties(io.vertx.amqp.AmqpMessage j_receiver) {
return io.vertx.core.impl.ConversionHelper.fromJsonObject(j_receiver.applicationProperties());
}
}