-module(objects@document). -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]). -export([doc_to_string/1, doc_to_list/1, doc_to_tuple/1, doc_to_json/1]). -export_type([fireball_document/0]). -type fireball_document() :: {fireball_document, binary()}. -file("/export/gleam/fireball/src/objects/document.gleam", 10). -spec doc_to_string(fireball_document()) -> binary(). doc_to_string(Doc) -> erlang:element(2, Doc). -file("/export/gleam/fireball/src/objects/document.gleam", 15). -spec doc_to_list(fireball_document()) -> list(binary()). doc_to_list(Doc) -> [erlang:element(2, Doc)]. -file("/export/gleam/fireball/src/objects/document.gleam", 20). -spec doc_to_tuple(fireball_document()) -> {binary()}. doc_to_tuple(Doc) -> {erlang:element(2, Doc)}. -file("/export/gleam/fireball/src/objects/document.gleam", 25). -spec doc_to_json(fireball_document()) -> binary(). doc_to_json(Doc) -> _pipe = gleam@json:object( [{<<"name"/utf8>>, gleam@json:string(erlang:element(2, Doc))}] ), gleam@json:to_string(_pipe).