Notification.fromJson constructor

Notification.fromJson(
  1. Map<String, Object?> json
)

Implementation

Notification.fromJson(Map<String, Object?> json)
    : actions = (json['actions'] as List).map((v) => v as Object?).toList(),
      event = SDNEvent.fromJson(json['event'] as Map<String, Object?>),
      profileTag =
          ((v) => v != null ? v as String : null)(json['profile_tag']),
      read = json['read'] as bool,
      roomId = json['room_id'] as String,
      ts = json['ts'] as int;