def to_array(self):
        """
        Serializes this LabeledPrice to a dictionary.

        :return: dictionary representation of this object.
        :rtype: dict
        """
        array = super(LabeledPrice, self).to_array()
        array['label'] = u(self.label)  # py2: type unicode, py3: type str

        array['amount'] = int(self.amount)  # type int
        return array
def to_array ( self ) : array = super ( LabeledPrice , self ) . to_array ( ) array [ 'label' ] = u ( self . label ) array [ 'amount' ] = int ( self . amount ) return array
Serializes this LabeledPrice to a dictionary.

        :return: dictionary representation of this object.
        :rtype: dict