def METHOD_NAME(self) -> Dict:
    inner: Dict[str, Any] = dict()
    if self.limit:
        inner[self.mode.value] = self.limit
    if self.fmt:
        inner["format"] = self.fmt.value
    return {"stream" if self.mode == CaptureMode.STREAM else "atEnd": inner}