lib/twilio-ruby/rest/studio/v1/flow/engagement.rb in twilio-ruby-5.7.2 vs lib/twilio-ruby/rest/studio/v1/flow/engagement.rb in twilio-ruby-5.8.0

- old
+ new

@@ -110,13 +110,17 @@ ## # Retrieve a single page of EngagementInstance records from the API. # Request is executed immediately. # @param [String] to The to # @param [String] from The from - # @param [String] parameters The parameters + # @param [Hash] parameters The parameters # @return [EngagementInstance] Newly created EngagementInstance def create(to: nil, from: nil, parameters: :unset) - data = Twilio::Values.of({'To' => to, 'From' => from, 'Parameters' => parameters, }) + data = Twilio::Values.of({ + 'To' => to, + 'From' => from, + 'Parameters' => Twilio.serialize_object(parameters), + }) payload = @version.create( 'POST', @uri, data: data \ No newline at end of file