def _from_json_dict_(
        cls,
        code: Any,
        error_message: str | None,
        token: str | None,
        utc_valid_until: float,
        metrics: cirq_google.Calibration,
        **kwargs,
    ) -> CalibrationResult:
        """Magic method for the JSON serialization protocol."""
        valid_until = (
            datetime.datetime.utcfromtimestamp(utc_valid_until)
            if utc_valid_until is not None
            else None
        )
        return cls(code, error_message, token, valid_until, metrics)
Magic method for the JSON serialization protocol.
cirq-google/cirq_google/engine/calibration_result.py