lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb in twilio-ruby-5.72.1 vs lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb in twilio-ruby-5.73.0

- old
+ new

@@ -366,11 +366,11 @@ 'attributes' => payload['attributes'], 'type' => payload['type'], 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']), 'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']), 'created_by' => payload['created_by'], - 'members_count' => payload['members_count'].to_i, - 'messages_count' => payload['messages_count'].to_i, + 'members_count' => payload['members_count'] == nil ? payload['members_count'] : payload['members_count'].to_i, + 'messages_count' => payload['messages_count'] == nil ? payload['messages_count'] : payload['messages_count'].to_i, 'url' => payload['url'], 'links' => payload['links'], } # Context \ No newline at end of file