GoogleAppsCardV1SwitchControl.fromJson constructor

GoogleAppsCardV1SwitchControl.fromJson(
  1. Map json_
)

Implementation

GoogleAppsCardV1SwitchControl.fromJson(core.Map json_)
    : this(
        controlType: json_['controlType'] as core.String?,
        name: json_['name'] as core.String?,
        onChangeAction: json_.containsKey('onChangeAction')
            ? GoogleAppsCardV1Action.fromJson(json_['onChangeAction']
                as core.Map<core.String, core.dynamic>)
            : null,
        selected: json_['selected'] as core.bool?,
        value: json_['value'] as core.String?,
      );