def str.of

bend-kit-jwt@0.11.0.1 · jwt.bend:191

import bend-kit-jwt@0.11.0.1/jwt.bend as Jwt
import Base
import bend-kit-json@0.7.0.0/json.bend as Json
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

191def str.of(v: Json.Val) -> Maybe<&2, String>:
192  match v:
193    case Json.Str{s}:
194      Some{Bytes.to_string(s)}
195    case _:
196      None{}

Uses (4)

Used by (1)