toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (alternateLink != null) 'alternateLink': alternateLink!,
if (assignedGrade != null) 'assignedGrade': assignedGrade!,
if (assignmentSubmission != null)
'assignmentSubmission': assignmentSubmission!,
if (associatedWithDeveloper != null)
'associatedWithDeveloper': associatedWithDeveloper!,
if (courseId != null) 'courseId': courseId!,
if (courseWorkId != null) 'courseWorkId': courseWorkId!,
if (courseWorkType != null) 'courseWorkType': courseWorkType!,
if (creationTime != null) 'creationTime': creationTime!,
if (draftGrade != null) 'draftGrade': draftGrade!,
if (id != null) 'id': id!,
if (late != null) 'late': late!,
if (multipleChoiceSubmission != null)
'multipleChoiceSubmission': multipleChoiceSubmission!,
if (shortAnswerSubmission != null)
'shortAnswerSubmission': shortAnswerSubmission!,
if (state != null) 'state': state!,
if (submissionHistory != null) 'submissionHistory': submissionHistory!,
if (updateTime != null) 'updateTime': updateTime!,
if (userId != null) 'userId': userId!,
};