Notifications.fromJson constructor

Notifications.fromJson(
  1. Map _json
)

Implementation

Notifications.fromJson(core.Map _json)
    : this(
        items: _json.containsKey('items')
            ? (_json['items'] as core.List)
                .map((value) => Notification.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
      );