GoogleCloudRecommenderV1Recommendation.fromJson constructor

GoogleCloudRecommenderV1Recommendation.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRecommenderV1Recommendation.fromJson(core.Map json_)
    : this(
        additionalImpact: json_.containsKey('additionalImpact')
            ? (json_['additionalImpact'] as core.List)
                .map((value) => GoogleCloudRecommenderV1Impact.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        associatedInsights: json_.containsKey('associatedInsights')
            ? (json_['associatedInsights'] as core.List)
                .map((value) =>
                    GoogleCloudRecommenderV1RecommendationInsightReference
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        content: json_.containsKey('content')
            ? GoogleCloudRecommenderV1RecommendationContent.fromJson(
                json_['content'] as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        lastRefreshTime: json_.containsKey('lastRefreshTime')
            ? json_['lastRefreshTime'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        primaryImpact: json_.containsKey('primaryImpact')
            ? GoogleCloudRecommenderV1Impact.fromJson(
                json_['primaryImpact'] as core.Map<core.String, core.dynamic>)
            : null,
        priority: json_.containsKey('priority')
            ? json_['priority'] as core.String
            : null,
        recommenderSubtype: json_.containsKey('recommenderSubtype')
            ? json_['recommenderSubtype'] as core.String
            : null,
        stateInfo: json_.containsKey('stateInfo')
            ? GoogleCloudRecommenderV1RecommendationStateInfo.fromJson(
                json_['stateInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        targetResources: json_.containsKey('targetResources')
            ? (json_['targetResources'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        xorGroupId: json_.containsKey('xorGroupId')
            ? json_['xorGroupId'] as core.String
            : null,
      );