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);
    }
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);
    }
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 ) ; }
Serializes the given text batch update into JSON.

@param Api\MtBatchTextSmsUpdate $batch the batch update to serialize

@return string JSON formatted string
Serializes the given text batch update into JSON .