InputField.fromJson constructor

InputField.fromJson(
  1. Map json_
)

Implementation

InputField.fromJson(core.Map json_)
    : this(
        checkboxInput: json_.containsKey('checkboxInput')
            ? InputFieldCheckboxInput.fromJson(
                json_['checkboxInput'] as core.Map<core.String, core.dynamic>)
            : null,
        choiceInput: json_.containsKey('choiceInput')
            ? InputFieldChoiceInput.fromJson(
                json_['choiceInput'] as core.Map<core.String, core.dynamic>)
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        label: json_.containsKey('label')
            ? TextWithTooltip.fromJson(
                json_['label'] as core.Map<core.String, core.dynamic>)
            : null,
        required: json_.containsKey('required')
            ? json_['required'] as core.bool
            : null,
        textInput: json_.containsKey('textInput')
            ? InputFieldTextInput.fromJson(
                json_['textInput'] as core.Map<core.String, core.dynamic>)
            : null,
      );