toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (alternateLink != null) 'alternateLink': alternateLink!,
      if (calendarId != null) 'calendarId': calendarId!,
      if (courseGroupEmail != null) 'courseGroupEmail': courseGroupEmail!,
      if (courseMaterialSets != null)
        'courseMaterialSets': courseMaterialSets!,
      if (courseState != null) 'courseState': courseState!,
      if (creationTime != null) 'creationTime': creationTime!,
      if (description != null) 'description': description!,
      if (descriptionHeading != null)
        'descriptionHeading': descriptionHeading!,
      if (enrollmentCode != null) 'enrollmentCode': enrollmentCode!,
      if (gradebookSettings != null) 'gradebookSettings': gradebookSettings!,
      if (guardiansEnabled != null) 'guardiansEnabled': guardiansEnabled!,
      if (id != null) 'id': id!,
      if (name != null) 'name': name!,
      if (ownerId != null) 'ownerId': ownerId!,
      if (room != null) 'room': room!,
      if (section != null) 'section': section!,
      if (teacherFolder != null) 'teacherFolder': teacherFolder!,
      if (teacherGroupEmail != null) 'teacherGroupEmail': teacherGroupEmail!,
      if (updateTime != null) 'updateTime': updateTime!,
    };