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