GoogleCloudRetailV2AttributesConfig.fromJson constructor

GoogleCloudRetailV2AttributesConfig.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRetailV2AttributesConfig.fromJson(core.Map json_)
    : this(
        attributeConfigLevel: json_.containsKey('attributeConfigLevel')
            ? json_['attributeConfigLevel'] as core.String
            : null,
        catalogAttributes: json_.containsKey('catalogAttributes')
            ? (json_['catalogAttributes']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  GoogleCloudRetailV2CatalogAttribute.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );