def gate_of
import cswap-bend-cli@0.1.0.0/cliswitch.bend as Cliswitchimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
87def gate_of(strategy: Maybe<&2, String>, model: Maybe<&2, String>, +cfg: Json.Json) -> Gate:
88 match strategy:
89 case None{}:
90 Gate{[], ""}
91 case Some{s}:
92 gate_model(model, cfg)