toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (alternateLink != null) 'alternateLink': alternateLink!,
      if (assigneeMode != null) 'assigneeMode': assigneeMode!,
      if (assignment != null) 'assignment': assignment!,
      if (associatedWithDeveloper != null)
        'associatedWithDeveloper': associatedWithDeveloper!,
      if (courseId != null) 'courseId': courseId!,
      if (creationTime != null) 'creationTime': creationTime!,
      if (creatorUserId != null) 'creatorUserId': creatorUserId!,
      if (description != null) 'description': description!,
      if (dueDate != null) 'dueDate': dueDate!,
      if (dueTime != null) 'dueTime': dueTime!,
      if (gradeCategory != null) 'gradeCategory': gradeCategory!,
      if (id != null) 'id': id!,
      if (individualStudentsOptions != null)
        'individualStudentsOptions': individualStudentsOptions!,
      if (materials != null) 'materials': materials!,
      if (maxPoints != null) 'maxPoints': maxPoints!,
      if (multipleChoiceQuestion != null)
        'multipleChoiceQuestion': multipleChoiceQuestion!,
      if (scheduledTime != null) 'scheduledTime': scheduledTime!,
      if (state != null) 'state': state!,
      if (submissionModificationMode != null)
        'submissionModificationMode': submissionModificationMode!,
      if (title != null) 'title': title!,
      if (topicId != null) 'topicId': topicId!,
      if (updateTime != null) 'updateTime': updateTime!,
      if (workType != null) 'workType': workType!,
    };