CorrectAnswers.fromJson constructor

CorrectAnswers.fromJson(
  1. Map json_
)

Implementation

CorrectAnswers.fromJson(core.Map json_)
    : this(
        answers: json_.containsKey('answers')
            ? (json_['answers'] as core.List)
                .map((value) => CorrectAnswer.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );