def base_row
cswap-bend-cli@0.1.0.0 · view.bend:292
import cswap-bend-cli@0.1.0.0/view.bend as View
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
292def base_row(+a: Acct, status: String, usage: Json.Json) -> Json.Json:
293 match a:
294 case Acct{num, email, org_name, org_uuid, active, alias, disabled, login, sentinel, row}:
295 Json.of_pairs([("number", Json.JNum{U32.show(num)}), ("email", jstr(email)), ("organizationName", jstr(org_name)),
296 ("organizationUuid", jstr(org_uuid)), ("isOrganization", jbool(Bool.not(String.is_empty(org_uuid)))), ("active", jbool(active)),
297 ("usageStatus", jstr(status)), ("usage", usage)])