code: def to_array(self):
          
          array = super(InputLocationMessageContent, self).to_array()
          array['latitude'] = float(self.latitude)  # type float
          array['longitude'] = float(self.longitude)  # type float
          if self.live_period is not None:
              array['live_period'] = int(self.live_period)  # type int
          return array
docs: Serializes this InputLocationMessageContent to a dictionary.
  
          :return: dictionary representation of this object.
          :rtype: dict