# bandwidth # # This file was automatically generated by APIMATIC v2.0 # ( https://apimatic.io ). module Bandwidth # ParticipantSubscription Model. class ParticipantSubscription < BaseModel # Participant the subscriber should be subscribed to # @return [String] attr_accessor :participant_id # A mapping from model property names to API property names. def self.names @_hash = {} if @_hash.nil? @_hash['participant_id'] = 'participantId' @_hash end def initialize(participant_id = nil) @participant_id = participant_id end # Creates an instance of the object from a hash. def self.from_hash(hash) return nil unless hash # Extract variables from the hash. participant_id = hash['participantId'] # Create object from extracted values. ParticipantSubscription.new(participant_id) end end end