toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (copyHistory != null) 'copyHistory': copyHistory!,
      if (courseId != null) 'courseId': courseId!,
      if (dueDate != null) 'dueDate': dueDate!,
      if (dueTime != null) 'dueTime': dueTime!,
      if (id != null) 'id': id!,
      if (itemId != null) 'itemId': itemId!,
      if (maxPoints != null) 'maxPoints': maxPoints!,
      if (postId != null) 'postId': postId!,
      if (studentViewUri != null) 'studentViewUri': studentViewUri!,
      if (studentWorkReviewUri != null)
        'studentWorkReviewUri': studentWorkReviewUri!,
      if (teacherViewUri != null) 'teacherViewUri': teacherViewUri!,
      if (title != null) 'title': title!,
    };