GoogleCloudRecommenderV1Insight.fromJson constructor

GoogleCloudRecommenderV1Insight.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRecommenderV1Insight.fromJson(core.Map json_)
    : this(
        associatedRecommendations:
            json_.containsKey('associatedRecommendations')
                ? (json_['associatedRecommendations'] as core.List)
                    .map((value) =>
                        GoogleCloudRecommenderV1InsightRecommendationReference
                            .fromJson(
                                value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        category: json_.containsKey('category')
            ? json_['category'] as core.String
            : null,
        content: json_.containsKey('content')
            ? 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,
        insightSubtype: json_.containsKey('insightSubtype')
            ? json_['insightSubtype'] as core.String
            : null,
        lastRefreshTime: json_.containsKey('lastRefreshTime')
            ? json_['lastRefreshTime'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        observationPeriod: json_.containsKey('observationPeriod')
            ? json_['observationPeriod'] as core.String
            : null,
        severity: json_.containsKey('severity')
            ? json_['severity'] as core.String
            : null,
        stateInfo: json_.containsKey('stateInfo')
            ? GoogleCloudRecommenderV1InsightStateInfo.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,
      );