Answer.fromJson constructor

Answer.fromJson(
  1. Map json_
)

Implementation

Answer.fromJson(core.Map json_)
    : this(
        fileUploadAnswers: json_.containsKey('fileUploadAnswers')
            ? FileUploadAnswers.fromJson(json_['fileUploadAnswers']
                as core.Map<core.String, core.dynamic>)
            : null,
        grade: json_.containsKey('grade')
            ? Grade.fromJson(
                json_['grade'] as core.Map<core.String, core.dynamic>)
            : null,
        questionId: json_.containsKey('questionId')
            ? json_['questionId'] as core.String
            : null,
        textAnswers: json_.containsKey('textAnswers')
            ? TextAnswers.fromJson(
                json_['textAnswers'] as core.Map<core.String, core.dynamic>)
            : null,
      );