class StakePayloadConverter implements PayloadConverter<Stake> {

  @Override
  public BytesValue convertToPayload(final Stake stake) {
    logger.debug("Convert to payload from {}", stake);
    final Map<String, Object> map = new HashMap<>();
    map.put("Name", stake.getOperationName());
    map.put("Args", Collections.emptyList());
    return mapper.marshal(map);
  }

}