code: def from_dict(data, ctx):
          
  
          data = data.copy()
  
          if data.get('price') is not None:
              data['price'] = ctx.convert_decimal_number(
                  data.get('price')
              )
  
          return PriceBucket(**data)
docs: Instantiate a new PriceBucket from a dict (generally from loading a
          JSON response). The data used to instantiate the PriceBucket is a
          shallow copy of the dict passed in, with any complex child types
          instantiated appropriately.