GoogleCloudRecommenderV1RecommenderConfig.fromJson constructor

GoogleCloudRecommenderV1RecommenderConfig.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRecommenderV1RecommenderConfig.fromJson(core.Map json_)
    : this(
        annotations: json_.containsKey('annotations')
            ? (json_['annotations'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        recommenderGenerationConfig: json_
                .containsKey('recommenderGenerationConfig')
            ? GoogleCloudRecommenderV1RecommenderGenerationConfig.fromJson(
                json_['recommenderGenerationConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        revisionId: json_.containsKey('revisionId')
            ? json_['revisionId'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );