ButtonParser
Defined in: packages/template/src/parser/button.parser.ts:3
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ButtonParser():
ButtonParser
Returns
Section titled “Returns”ButtonParser
Methods
Section titled “Methods”deserializeButtons()
Section titled “deserializeButtons()”
staticdeserializeButtons(buttonsJson):TemplateButton[]
Defined in: packages/template/src/parser/button.parser.ts:169
JSON 문자열에서 버튼 배열로 역직렬화합니다
Parameters
Section titled “Parameters”buttonsJson
Section titled “buttonsJson”string
Returns
Section titled “Returns”serializeButtons()
Section titled “serializeButtons()”
staticserializeButtons(buttons):string
Defined in: packages/template/src/parser/button.parser.ts:151
버튼을 JSON 문자열로 직렬화합니다 (카카오 API 형식)
Parameters
Section titled “Parameters”buttons
Section titled “buttons”Returns
Section titled “Returns”string
validateButtons()
Section titled “validateButtons()”
staticvalidateButtons(buttons):object
Defined in: packages/template/src/parser/button.parser.ts:7
버튼 설정의 유효성을 검증합니다
Parameters
Section titled “Parameters”buttons
Section titled “buttons”Returns
Section titled “Returns”object
errors
Section titled “errors”errors:
string[]
isValid
Section titled “isValid”isValid:
boolean