def METHOD_NAME(self, with_display: bool = True, **kwargs) -> CheckResultMetadata:
    """Serialize a CheckResult instance into JSON format.
    Parameters
    ----------
    with_display : bool
        controls if to serialize display or not
    Returns
    -------
    CheckResultMetadata
    """
    display = self.prepare_display() if with_display else None
    return CheckResultMetadata(
        type='CheckResult',
        check=self.prepare_check_metadata(),
        header=self.value.get_header(),
        value=self.prepare_value(),
        conditions_results=self.prepare_condition_results(),
        display=display
    )