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