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 (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 (text != null) 'text': text!,
      if (updateTime != null) 'updateTime': updateTime!,
    };