ChoiceQuestion.fromJson constructor

ChoiceQuestion.fromJson(
  1. Map json_
)

Implementation

ChoiceQuestion.fromJson(core.Map json_)
    : this(
        options: json_.containsKey('options')
            ? (json_['options'] as core.List)
                .map((value) => Option.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        shuffle: json_.containsKey('shuffle')
            ? json_['shuffle'] as core.bool
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );