textContentFromMap function
Get TextContent from Map
Implementation
TextContent textContentFromMap(Map<String, dynamic> textMap) {
return TextContent(
(textMap.containsKey(keyTextContentTitle)
? textMap[keyTextContentTitle]
: '')
.toString(),
textMap[keyTextContentMessage].toString(),
(textMap.containsKey(keyTextContentSummary)
? textMap[keyTextContentSummary]
: '')
.toString(),
(textMap.containsKey(keyTextContentSubTitle)
? textMap[keyTextContentSubTitle]
: '')
.toString());
}