def from_raw(self, raw: RawScalar) -> Optional[ScalarValue]:
        """Return a cooked value of the receiver type.

        Args:
            raw: Raw value obtained from JSON parser.
        """
        if isinstance(raw, str):
            return raw
Return a cooked value of the receiver type.

        Args:
            raw: Raw value obtained from JSON parser.