fromJson static method
dynamic
fromJson(
- Map json
)
Implementation
static fromJson(Map<dynamic, dynamic> json) {
NetmeraPushInbox inbox = new NetmeraPushInbox();
inbox._title = json['title'];
inbox._subtitle = json['subtitle'];
inbox._body = json['body'];
inbox._pushType = json['pushType'];
inbox._pushId = json['pushId'];
inbox._pushInstanceId = json['pushInstanceId'];
inbox._sendDate = json['sendDate'];
inbox._inboxStatus = json['inboxStatus'];
inbox._actionDeepLinkUrl = json['action_deeplink_url'];
inbox._actionWebPageUrl = json['action_webpage_url'];
inbox._externalId = json['externalId'];
inbox._customJson = json['customJson'];
inbox._pushAction = json['pushAction'];
inbox._carousel = json['carousel'];
inbox._mediaAttachmentURL = json['mediaAttachmentURL'];
inbox._category = json['category'];
inbox._categories = json['categories'];
inbox._expireTime = json['expireTime'];
if (json['interactiveActions'] != null) {
inbox._interactiveActions = List.from(jsonDecode(json['interactiveActions']))
.map((model) => NetmeraInteractiveAction.fromJson(model))
.toList(); //todo check flutter 2.0
}
return inbox;
}