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