GoogleCloudRetailV2SearchRequestBoostSpec.fromJson constructor

GoogleCloudRetailV2SearchRequestBoostSpec.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRetailV2SearchRequestBoostSpec.fromJson(core.Map json_)
    : this(
        conditionBoostSpecs: json_.containsKey('conditionBoostSpecs')
            ? (json_['conditionBoostSpecs'] as core.List)
                .map((value) =>
                    GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        skipBoostSpecValidation: json_.containsKey('skipBoostSpecValidation')
            ? json_['skipBoostSpecValidation'] as core.bool
            : null,
      );