QuestionGroupItem.fromJson constructor

QuestionGroupItem.fromJson(
  1. Map json_
)

Implementation

QuestionGroupItem.fromJson(core.Map json_)
    : this(
        grid: json_.containsKey('grid')
            ? Grid.fromJson(
                json_['grid'] as core.Map<core.String, core.dynamic>)
            : null,
        image: json_.containsKey('image')
            ? Image.fromJson(
                json_['image'] as core.Map<core.String, core.dynamic>)
            : null,
        questions: json_.containsKey('questions')
            ? (json_['questions'] as core.List)
                .map((value) => Question.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );