def Status.of

bend-kube-runtime@0.2.0.0 · src/core.bend:365

import bend-kube-runtime@0.2.0.0/src/core.bend as Core
import Base
import bend-kube-runtime@0.2.0.0/src/json.bend as J

365def Status.of(+j: J.Json) -> Status:
366  Status{Maybe.default(&2, U32, J.Json.as_u32(J.Json.get(j, "code")), 0),
367    J.Json.str_or(J.Json.get(j, "reason"), ""), J.Json.str_or(J.Json.get(j, "message"), "")}

Uses (7)

Used by (2)