UpdateActiveNotifications.fromJson constructor

UpdateActiveNotifications.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

factory UpdateActiveNotifications.fromJson(Map<String, dynamic> json) =>
    UpdateActiveNotifications(
      groups: List<NotificationGroup>.from((json['groups'] ?? [])
          .map((item) => NotificationGroup.fromJson(item))
          .toList()),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );