original_string: public static function textBatchUpdate(Api\MtBatchTextSmsUpdate $batch)
      {
          $fields = Serialize::_batchUpdateHelper($batch);
  
          $fields['type'] = 'mt_text';
  
          if (null != $batch->getBody()) {
              $fields['body'] = $batch->getBody();
          }
  
          if (null != $batch->getParameters()) {
              if ($batch->getParameters() === Api\Reset::reset()) {
                  $fields['parameters'] = null;
              } else {
                  $fields['parameters'] = $batch->getParameters();
              }
          }
  
          return Serialize::_toJson($fields);
      }
code: public static function textBatchUpdate(Api\MtBatchTextSmsUpdate $batch)
      {
          $fields = Serialize::_batchUpdateHelper($batch);
  
          $fields['type'] = 'mt_text';
  
          if (null != $batch->getBody()) {
              $fields['body'] = $batch->getBody();
          }
  
          if (null != $batch->getParameters()) {
              if ($batch->getParameters() === Api\Reset::reset()) {
                  $fields['parameters'] = null;
              } else {
                  $fields['parameters'] = $batch->getParameters();
              }
          }
  
          return Serialize::_toJson($fields);
      }
code_tokens: public static function textBatchUpdate ( Api \ MtBatchTextSmsUpdate $ batch ) { $ fields = Serialize :: _batchUpdateHelper ( $ batch ) ; $ fields [ 'type' ] = 'mt_text' ; if ( null != $ batch -> getBody ( ) ) { $ fields [ 'body' ] = $ batch -> getBody ( ) ; } if ( null != $ batch -> getParameters ( ) ) { if ( $ batch -> getParameters ( ) === Api \ Reset :: reset ( ) ) { $ fields [ 'parameters' ] = null ; } else { $ fields [ 'parameters' ] = $ batch -> getParameters ( ) ; } } return Serialize :: _toJson ( $ fields ) ; }
docstring: Serializes the given text batch update into JSON.
  
  @param Api\MtBatchTextSmsUpdate $batch the batch update to serialize
  
  @return string JSON formatted string
docstring_tokens: Serializes the given text batch update into JSON .