GoogleAppsCardV1SelectionInput.fromJson constructor

GoogleAppsCardV1SelectionInput.fromJson(
  1. Map json_
)

Implementation

GoogleAppsCardV1SelectionInput.fromJson(core.Map json_)
    : this(
        externalDataSource: json_.containsKey('externalDataSource')
            ? GoogleAppsCardV1Action.fromJson(json_['externalDataSource']
                as core.Map<core.String, core.dynamic>)
            : null,
        items: json_.containsKey('items')
            ? (json_['items'] as core.List)
                .map((value) => GoogleAppsCardV1SelectionItem.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        label:
            json_.containsKey('label') ? json_['label'] as core.String : null,
        multiSelectMaxSelectedItems:
            json_.containsKey('multiSelectMaxSelectedItems')
                ? json_['multiSelectMaxSelectedItems'] as core.int
                : null,
        multiSelectMinQueryLength:
            json_.containsKey('multiSelectMinQueryLength')
                ? json_['multiSelectMinQueryLength'] as core.int
                : 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,
        platformDataSource: json_.containsKey('platformDataSource')
            ? GoogleAppsCardV1PlatformDataSource.fromJson(
                json_['platformDataSource']
                    as core.Map<core.String, core.dynamic>)
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );