ChoiceInput.fromJson constructor

ChoiceInput.fromJson(
  1. Map json_
)

Implementation

ChoiceInput.fromJson(core.Map json_)
  : this(
      options:
          (json_['options'] as core.List?)
              ?.map(
                (value) => ChoiceInputOption.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
              )
              .toList(),
    );