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