toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (courseId != null) 'courseId': courseId!,
if (itemId != null) 'itemId': itemId!,
if (postId != null) 'postId': postId!,
if (studentContext != null) 'studentContext': studentContext!,
if (supportsStudentWork != null)
'supportsStudentWork': supportsStudentWork!,
if (teacherContext != null) 'teacherContext': teacherContext!,
};