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 (courseId != null) 'courseId': courseId!,
      if (creationTime != null) 'creationTime': creationTime!,
      if (creatorUserId != null) 'creatorUserId': creatorUserId!,
      if (description != null) 'description': description!,
      if (id != null) 'id': id!,
      if (individualStudentsOptions != null)
        'individualStudentsOptions': individualStudentsOptions!,
      if (materials != null) 'materials': materials!,
      if (scheduledTime != null) 'scheduledTime': scheduledTime!,
      if (state != null) 'state': state!,
      if (title != null) 'title': title!,
      if (topicId != null) 'topicId': topicId!,
      if (updateTime != null) 'updateTime': updateTime!,
    };