QuestionItem.fromJson constructor

QuestionItem.fromJson(
  1. Map json_
)

Implementation

QuestionItem.fromJson(core.Map json_)
    : this(
        image: json_.containsKey('image')
            ? Image.fromJson(
                json_['image'] as core.Map<core.String, core.dynamic>)
            : null,
        question: json_.containsKey('question')
            ? Question.fromJson(
                json_['question'] as core.Map<core.String, core.dynamic>)
            : null,
      );