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, item) => core.MapEntry(
                  key,
                  GoogleCloudRecommendationengineV1beta1FeatureMapStringList
                      .fromJson(item as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        numericalFeatures: _json.containsKey('numericalFeatures')
            ? (_json['numericalFeatures']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, item) => core.MapEntry(
                  key,
                  GoogleCloudRecommendationengineV1beta1FeatureMapFloatList
                      .fromJson(item as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
      );