View.extras: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/view.bend as View Lines 299-303 of cswap-bend-cli@0.1.0.0/view.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/view.bend&start_line=299&end_line=303 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json def extras(+a: Acct, j: Json.Json) -> Json.Json: match a: case Acct{num, email, org_name, org_uuid, active, alias, disabled, login, sentinel, row}: put_m("loginExpiresAt", Maybe.bind(&2, String, Json.Json, login, s => Some{jstr(s)}), put_if(disabled, "disabled", jbool(True{}), put_if(Bool.not(String.is_empty(alias)), "alias", jstr(alias), j))) Uses (12): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.is_empty https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=Json https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/view.bend&name=Acct https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/view.bend&name=jbool https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/view.bend&name=jstr https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/view.bend&name=put_if https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/view.bend&name=put_m