code: def from_raw(self, rval: RawScalar, jptr: JSONPointer = "") -> ScalarValue:
          
          res = self.type.from_raw(rval)
          if res is None:
              raise RawTypeError(jptr, self.type.yang_type() + " value")
          return res
docs: Override the superclass method.