payload_transformer library

Constants

ACTION → const String
"action"
ACTION_TYPE → const String
"actionType"
CAMPAIGN_ID → const String
"campaignId"
EXPIRY_TIME → const String
"expiry"
ID → const String
"id"
IS_CLICKED → const String
"isClicked"
KV_PAIR → const String
"kvPair"
MEDIA_CONTENT → const String
"media"
MESSAGES → const String
"messages"
"navigationType"
PAYLOAD → const String
"payload"
PLATFORM → const String
"platform"
RECEIVED_TIME → const String
"receivedTime"
TAG → const String
"tag"
TEXT_CONTENT → const String
"text"
TEXT_CONTENT_MESSAGE → const String
"message"
TEXT_CONTENT_SUB_TITLE → const String
"subtitle"
TEXT_CONTENT_SUMMARY → const String
"summary"
TEXT_CONTENT_TITLE → const String
"title"
TYPE → const String
"type"
URL → const String
"url"
VALUE → const String
"value"

Functions

actionFromMap(Map<String, dynamic> actionMap) Action
actionsFromMap(List actions) List<Action>
actionsListFromModel(List<Action> actions) List<Map<String, dynamic>>
actionToMap(Action action) Map<String, dynamic>
deSerializeInboxMessages(dynamic messagesPayload) InboxData
mapFromMedia(Media media) Map<String, String>
mapFromTextContent(TextContent content) Map<String, String>
mediaFromMap(Map<String, dynamic> mediaMap) Media
messageFromJson(Map<String, dynamic> message) InboxMessage
messagesJsonToList(List messageArray) List<InboxMessage>
messageToMap(InboxMessage inboxMessage) Map<String, dynamic>
textContentFromMap(Map<String, dynamic> textMap) TextContent