GoogleAppsCardV1SwitchControl.fromJson constructor

GoogleAppsCardV1SwitchControl.fromJson(
  1. Map json_
)

Implementation

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