GoogleCloudRetailV2Control.fromJson constructor

GoogleCloudRetailV2Control.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRetailV2Control.fromJson(core.Map json_)
    : this(
        associatedServingConfigIds:
            json_.containsKey('associatedServingConfigIds')
                ? (json_['associatedServingConfigIds'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        rule: json_.containsKey('rule')
            ? GoogleCloudRetailV2Rule.fromJson(
                json_['rule'] as core.Map<core.String, core.dynamic>)
            : null,
        searchSolutionUseCase: json_.containsKey('searchSolutionUseCase')
            ? (json_['searchSolutionUseCase'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        solutionTypes: json_.containsKey('solutionTypes')
            ? (json_['solutionTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );