GoogleCloudRecommendationengineV1beta1FeatureMap.fromJson constructor

GoogleCloudRecommendationengineV1beta1FeatureMap.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRecommendationengineV1beta1FeatureMap.fromJson(core.Map json_)
    : this(
        categoricalFeatures: json_.containsKey('categoricalFeatures')
            ? (json_['categoricalFeatures']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  GoogleCloudRecommendationengineV1beta1FeatureMapStringList
                      .fromJson(value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        numericalFeatures: json_.containsKey('numericalFeatures')
            ? (json_['numericalFeatures']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  GoogleCloudRecommendationengineV1beta1FeatureMapFloatList
                      .fromJson(value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
      );