def METHOD_NAME(self, state_props: StateProps) -> None:
    self.name = state_props.name
    self.state_type = state_props.get(StateType)
    self.continue_with = (
        ContinueWithEnd() if state_props.get(End) else ContinueWithNext(state_props.get(Next))
    )
    self.comment = state_props.get(Comment)
    self.input_path = state_props.get(InputPath) or InputPath(InputPath.DEFAULT_PATH)
    self.output_path = state_props.get(OutputPath) or OutputPath(OutputPath.DEFAULT_PATH)