toFlowEffectState