const { toSerialize } = require('./toSerialize') /** * @deprecate * @param answer string * @param options {media:string, buttons:[], capture:true default false} * @returns */ const addChild = (flowIn = null) => { if (!flowIn?.toJson) { throw new Error('DEBE SER UN FLOW CON toJSON()') } return toSerialize(flowIn.toJson()) } module.exports = { addChild }