Grade.fromJson constructor

Grade.fromJson(
  1. Map json_
)

Implementation

Grade.fromJson(core.Map json_)
    : this(
        correct: json_.containsKey('correct')
            ? json_['correct'] as core.bool
            : null,
        feedback: json_.containsKey('feedback')
            ? Feedback.fromJson(
                json_['feedback'] as core.Map<core.String, core.dynamic>)
            : null,
        score: json_.containsKey('score')
            ? (json_['score'] as core.num).toDouble()
            : null,
      );