code: def value(self, raw_value):
          
          try:
              return decimal.Decimal(raw_value)
          except decimal.InvalidOperation:
              raise ValueError(
                  "Could not parse '{}' value as decimal".format(raw_value)
              )
docs: Decode param as decimal value.