text method
Implementation
text(String text, bool? previewUrl) {
dynamic replayObject = {
"type": "text",
"text": {
"body": text,
}
};
if (previewUrl!) {
replayObject['text']['preview_url'];
}
return replayObject;
}