lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb in twilio-ruby-5.72.1 vs lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb in twilio-ruby-5.73.0
- old
+ new
@@ -266,10 +266,10 @@
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
'was_edited' => payload['was_edited'],
'from' => payload['from'],
'body' => payload['body'],
- 'index' => payload['index'].to_i,
+ 'index' => payload['index'] == nil ? payload['index'] : payload['index'].to_i,
'url' => payload['url'],
}
# Context
@instance_context = nil
\ No newline at end of file