ChoiceQuestion.fromJson constructor

ChoiceQuestion.fromJson(
  1. Map json_
)

Implementation

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