def atomic_value

qasim-bend-kit@0.1.0.2 · proof/JSON_SourceProof.bend:201

import qasim-bend-kit@0.1.0.2/proof/JSON_SourceProof.bend as JSONSourceProof
import Base
import qasim-bend-kit@0.1.0.2/libs/JSON.bend as J

201def atomic_value(atom: AtomicValue) -> J.Value:
202    match atom:
203        case AtomicNull{}: J.Null{}
204        case AtomicTrue{}: J.Bool{True{}}
205        case AtomicFalse{}: J.Bool{False{}}
206        case AtomicNumber{text, certificate}: J.Number{text, certificate}
207        case AtomicString{text}: J.Str{text}

Uses (3)

Used by (11)