original_string: private static function _batchResponseHelper(
          &$json, \stdClass &$fields, Api\MtBatchSmsResult &$object
      ) {
          $object->setBatchId($fields->id);
          $object->setRecipients($fields->to);
          $object->setSender($fields->from);
          $object->setCanceled($fields->canceled);
  
          if (isset($fields->delivery_report)) {
              $object->setDeliveryReport($fields->delivery_report);
          }
  
          if (isset($fields->send_at)) {
              $object->setSendAt(
                  Deserialize::_dateTime($json, $fields->send_at)
              );
          }
  
          if (isset($fields->expire_at)) {
              $object->setExpireAt(
                  Deserialize::_dateTime($json, $fields->expire_at)
              );
          }
  
          if (isset($fields->created_at)) {
              $object->setCreatedAt(
                  Deserialize::_dateTime($json, $fields->created_at)
              );
          }
  
          if (isset($fields->modified_at)) {
              $object->setModifiedAt(
                  Deserialize::_dateTime($json, $fields->modified_at)
              );
          }
  
          if (isset($fields->callback_url)) {
              $object->setCallbackUrl($fields->callback_url);
          }
      }
code: private static function _batchResponseHelper(
          &$json, \stdClass &$fields, Api\MtBatchSmsResult &$object
      ) {
          $object->setBatchId($fields->id);
          $object->setRecipients($fields->to);
          $object->setSender($fields->from);
          $object->setCanceled($fields->canceled);
  
          if (isset($fields->delivery_report)) {
              $object->setDeliveryReport($fields->delivery_report);
          }
  
          if (isset($fields->send_at)) {
              $object->setSendAt(
                  Deserialize::_dateTime($json, $fields->send_at)
              );
          }
  
          if (isset($fields->expire_at)) {
              $object->setExpireAt(
                  Deserialize::_dateTime($json, $fields->expire_at)
              );
          }
  
          if (isset($fields->created_at)) {
              $object->setCreatedAt(
                  Deserialize::_dateTime($json, $fields->created_at)
              );
          }
  
          if (isset($fields->modified_at)) {
              $object->setModifiedAt(
                  Deserialize::_dateTime($json, $fields->modified_at)
              );
          }
  
          if (isset($fields->callback_url)) {
              $object->setCallbackUrl($fields->callback_url);
          }
      }
code_tokens: private static function _batchResponseHelper ( & $ json , \ stdClass & $ fields , Api \ MtBatchSmsResult & $ object ) { $ object -> setBatchId ( $ fields -> id ) ; $ object -> setRecipients ( $ fields -> to ) ; $ object -> setSender ( $ fields -> from ) ; $ object -> setCanceled ( $ fields -> canceled ) ; if ( isset ( $ fields -> delivery_report ) ) { $ object -> setDeliveryReport ( $ fields -> delivery_report ) ; } if ( isset ( $ fields -> send_at ) ) { $ object -> setSendAt ( Deserialize :: _dateTime ( $ json , $ fields -> send_at ) ) ; } if ( isset ( $ fields -> expire_at ) ) { $ object -> setExpireAt ( Deserialize :: _dateTime ( $ json , $ fields -> expire_at ) ) ; } if ( isset ( $ fields -> created_at ) ) { $ object -> setCreatedAt ( Deserialize :: _dateTime ( $ json , $ fields -> created_at ) ) ; } if ( isset ( $ fields -> modified_at ) ) { $ object -> setModifiedAt ( Deserialize :: _dateTime ( $ json , $ fields -> modified_at ) ) ; } if ( isset ( $ fields -> callback_url ) ) { $ object -> setCallbackUrl ( $ fields -> callback_url ) ; } }
docstring: Helper that populates the given batch result.
  
  The batch result is populated from an object as returned by
  `json_decode`.
  
  @param string               $json   original JSON string
  @param object               $fields the JSON fields
  @param Api\MtBatchSmsResult $object the target object
  
  @return void
docstring_tokens: Helper that populates the given batch result .