code: def from_array(array):
          
          if array is None or not array:
              return None
          # end if
          assert_type_or_raise(array, dict, parameter_name="array")
  
  
          data = {}
          data['id'] = u(array.get('id'))
          data['title'] = u(array.get('title'))
          data['prices'] = LabeledPrice.from_array_list(array.get('prices'), list_level=1)
  
          instance = ShippingOption(**data)
          instance._raw = array
          return instance
docs: Deserialize a new ShippingOption from a given dictionary.
  
          :return: new ShippingOption instance.
          :rtype: ShippingOption