GetSocialNotification.fromJSON constructor
GetSocialNotification.fromJSON(
- Map<String, dynamic> json
)
Implementation
GetSocialNotification.fromJSON(Map<String, dynamic> json)
: id = json['id'],
type = json['type'],
status = json['status'],
createdAt = json['createdAt'],
text = json['text'],
title = json['title'],
mediaAttachment = json['mediaAttachment'] == null
? null
: MediaAttachment.fromJSON(json['mediaAttachment']),
notificationAction = json['action'] == null
? null
: GetSocialAction.fromJSON(json['action']),
actionButtons = json['actionButtons'] == null
? []
: Utils.createList(json['actionButtons'],
(jsonMap) => NotificationButton.fromJSON(jsonMap)),
sender = json['sender'] == null ? null : User.fromJSON(json['sender']),
customization = json['customization'] == null
? null
: NotificationCustomization.fromJSON(json['customization']);