StudentSubmission.fromJson constructor

StudentSubmission.fromJson(
  1. Map json_
)

Implementation

StudentSubmission.fromJson(core.Map json_)
    : this(
        alternateLink: json_.containsKey('alternateLink')
            ? json_['alternateLink'] as core.String
            : null,
        assignedGrade: json_.containsKey('assignedGrade')
            ? (json_['assignedGrade'] as core.num).toDouble()
            : null,
        assignmentSubmission: json_.containsKey('assignmentSubmission')
            ? AssignmentSubmission.fromJson(json_['assignmentSubmission']
                as core.Map<core.String, core.dynamic>)
            : null,
        associatedWithDeveloper: json_.containsKey('associatedWithDeveloper')
            ? json_['associatedWithDeveloper'] as core.bool
            : null,
        courseId: json_.containsKey('courseId')
            ? json_['courseId'] as core.String
            : null,
        courseWorkId: json_.containsKey('courseWorkId')
            ? json_['courseWorkId'] as core.String
            : null,
        courseWorkType: json_.containsKey('courseWorkType')
            ? json_['courseWorkType'] as core.String
            : null,
        creationTime: json_.containsKey('creationTime')
            ? json_['creationTime'] as core.String
            : null,
        draftGrade: json_.containsKey('draftGrade')
            ? (json_['draftGrade'] as core.num).toDouble()
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        late: json_.containsKey('late') ? json_['late'] as core.bool : null,
        multipleChoiceSubmission:
            json_.containsKey('multipleChoiceSubmission')
                ? MultipleChoiceSubmission.fromJson(
                    json_['multipleChoiceSubmission']
                        as core.Map<core.String, core.dynamic>)
                : null,
        shortAnswerSubmission: json_.containsKey('shortAnswerSubmission')
            ? ShortAnswerSubmission.fromJson(json_['shortAnswerSubmission']
                as core.Map<core.String, core.dynamic>)
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        submissionHistory: json_.containsKey('submissionHistory')
            ? (json_['submissionHistory'] as core.List)
                .map((value) => SubmissionHistory.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        userId: json_.containsKey('userId')
            ? json_['userId'] as core.String
            : null,
      );