Announcement.fromJson constructor

Announcement.fromJson(
  1. Map json_
)

Implementation

Announcement.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,
        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,
        text: json_.containsKey('text') ? json_['text'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );