toStateValue

Converts the state into an TypedData.MapValue.