core.Map<core.String, core.dynamic> toJson() => { if (alerts != null) 'alerts': alerts!.map((value) => value.toJson()).toList(), if (nextPageToken != null) 'nextPageToken': nextPageToken!, };