ListAlertsResponse.fromJson constructor

ListAlertsResponse.fromJson(
  1. Map _json
)

Implementation

ListAlertsResponse.fromJson(core.Map _json)
    : this(
        alerts: _json.containsKey('alerts')
            ? (_json['alerts'] as core.List)
                .map<Alert>((value) => Alert.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        nextPageToken: _json.containsKey('nextPageToken')
            ? _json['nextPageToken'] as core.String
            : null,
      );