Grading.fromJson constructor

Grading.fromJson(
  1. Map json_
)

Implementation

Grading.fromJson(core.Map json_)
  : this(
      correctAnswers: json_.containsKey('correctAnswers')
          ? CorrectAnswers.fromJson(
              json_['correctAnswers'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      generalFeedback: json_.containsKey('generalFeedback')
          ? Feedback.fromJson(
              json_['generalFeedback'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      pointValue: json_['pointValue'] as core.int?,
      whenRight: json_.containsKey('whenRight')
          ? Feedback.fromJson(
              json_['whenRight'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      whenWrong: json_.containsKey('whenWrong')
          ? Feedback.fromJson(
              json_['whenWrong'] as core.Map<core.String, core.dynamic>,
            )
          : null,
    );