public void translateToMap() {
   if (BillFmtOptFormatsFindIn != null) {
     Integer index = BillFmtOptFormatsFindIn.getIndex();
     if (index != null) addInput("Index", index);
     addInput(
         "BillFmtOptFormats",
         BillFmtOptFormatsObjectHelper.toMap(
                 BillFmtOptFormatsFindIn, new HashMap(), "BillFmtOptFormats")
             .get("BillFmtOptFormats"));
   }
 }
 /**
  * Constructor to create a BillFmtOptFormatsFindNoOpRequest
  *
  * @param id Unique request name
  * @param noOpIn Simulated response object
  */
 public BillFmtOptFormatsFindNoOpRequest(String id, BillFmtOptFormatsObjectDataList noOpIn) {
   super(id, "BillFmtOptFormatsFindNoOpRequest");
   if (noOpIn != null) {
     Map mapList = new HashMap();
     Map[] mapArray = null;
     mapList.put("Count", noOpIn.getLength());
     mapList.put("TotalCount", noOpIn.getTotalCount());
     mapList.put("Index", noOpIn.getIndex());
     mapArray = new HashMap[noOpIn.getLength()];
     for (int i = 0; i < noOpIn.getLength(); i++) {
       mapArray[i] = BillFmtOptFormatsObjectHelper.toMap(noOpIn.getArray()[i], null);
       addInput("BillFmtOptFormats", noOpIn);
     }
     addInput("BillFmtOptFormats", mapList);
   }
 }