def Json.str_or

bend-kube-runtime@0.2.0.0 · src/json.bend:160

import bend-kube-runtime@0.2.0.0/src/json.bend as Json
import Base

160def Json.str_or(j: Json, d: String) -> String:
161  match j:
162    case JStr{s}:
163      s
164    case _:
165      d

Uses (2)

Used by (22)