CourseWorkMaterial.fromJson constructor
CourseWorkMaterial.fromJson(
- Map json_
Implementation
CourseWorkMaterial.fromJson(core.Map json_)
: this(
alternateLink: json_.containsKey('alternateLink')
? json_['alternateLink'] as core.String
: null,
assigneeMode: json_.containsKey('assigneeMode')
? json_['assigneeMode'] as core.String
: null,
courseId: json_.containsKey('courseId')
? json_['courseId'] as core.String
: null,
creationTime: json_.containsKey('creationTime')
? json_['creationTime'] as core.String
: null,
creatorUserId: json_.containsKey('creatorUserId')
? json_['creatorUserId'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
individualStudentsOptions:
json_.containsKey('individualStudentsOptions')
? IndividualStudentsOptions.fromJson(
json_['individualStudentsOptions']
as core.Map<core.String, core.dynamic>)
: null,
materials: json_.containsKey('materials')
? (json_['materials'] as core.List)
.map((value) => Material.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
scheduledTime: json_.containsKey('scheduledTime')
? json_['scheduledTime'] as core.String
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
title:
json_.containsKey('title') ? json_['title'] as core.String : null,
topicId: json_.containsKey('topicId')
? json_['topicId'] as core.String
: null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
);