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