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