Course.fromJson constructor
Course.fromJson(
- Map json_
Implementation
Course.fromJson(core.Map json_)
: this(
alternateLink: json_.containsKey('alternateLink')
? json_['alternateLink'] as core.String
: null,
calendarId: json_.containsKey('calendarId')
? json_['calendarId'] as core.String
: null,
courseGroupEmail: json_.containsKey('courseGroupEmail')
? json_['courseGroupEmail'] as core.String
: null,
courseMaterialSets: json_.containsKey('courseMaterialSets')
? (json_['courseMaterialSets'] as core.List)
.map((value) => CourseMaterialSet.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
courseState: json_.containsKey('courseState')
? json_['courseState'] as core.String
: null,
creationTime: json_.containsKey('creationTime')
? json_['creationTime'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
descriptionHeading: json_.containsKey('descriptionHeading')
? json_['descriptionHeading'] as core.String
: null,
enrollmentCode: json_.containsKey('enrollmentCode')
? json_['enrollmentCode'] as core.String
: null,
gradebookSettings: json_.containsKey('gradebookSettings')
? GradebookSettings.fromJson(json_['gradebookSettings']
as core.Map<core.String, core.dynamic>)
: null,
guardiansEnabled: json_.containsKey('guardiansEnabled')
? json_['guardiansEnabled'] as core.bool
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
ownerId: json_.containsKey('ownerId')
? json_['ownerId'] as core.String
: null,
room: json_.containsKey('room') ? json_['room'] as core.String : null,
section: json_.containsKey('section')
? json_['section'] as core.String
: null,
teacherFolder: json_.containsKey('teacherFolder')
? DriveFolder.fromJson(
json_['teacherFolder'] as core.Map<core.String, core.dynamic>)
: null,
teacherGroupEmail: json_.containsKey('teacherGroupEmail')
? json_['teacherGroupEmail'] as core.String
: null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
);