NotificationArgs.fromMap constructor

NotificationArgs.fromMap(
  1. Map<String, dynamic> json
)

Implementation

NotificationArgs.fromMap(Map<String, dynamic> json) {
  if (json != null) {
    title = json['title'];
    text = json['text'];
    msg = json['msg'];
    ts = DateTime.now();
    payload = json['payload'] != null
        ? NotificationPayload.fromMap(json['payload'])
        : null;
  }
}