textContentFromMap function

TextContent textContentFromMap(
  1. Map<String, dynamic> textMap
)

Implementation

TextContent textContentFromMap(Map<String, dynamic> textMap) {
  return TextContent(
      textMap.containsKey(TEXT_CONTENT_TITLE)
          ? textMap[TEXT_CONTENT_TITLE]
          : "",
      textMap[TEXT_CONTENT_MESSAGE],
      textMap.containsKey(TEXT_CONTENT_SUMMARY)
          ? textMap[TEXT_CONTENT_SUMMARY]
          : "",
      textMap.containsKey(TEXT_CONTENT_SUB_TITLE)
          ? textMap[TEXT_CONTENT_SUB_TITLE]
          : "");
}