mapFromTextContent function

Map<String, String> mapFromTextContent(
  1. TextContent content
)

Implementation

Map<String, String> mapFromTextContent(TextContent content) {
  return <String, String>{
    TEXT_CONTENT_TITLE: content.title,
    TEXT_CONTENT_MESSAGE: content.message,
    TEXT_CONTENT_SUMMARY: content.summary,
    TEXT_CONTENT_SUB_TITLE: content.subtitle
  };
}