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