GoogleCloudRecommenderV1Operation.fromJson constructor

GoogleCloudRecommenderV1Operation.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRecommenderV1Operation.fromJson(core.Map json_)
    : this(
        action: json_.containsKey('action')
            ? json_['action'] as core.String
            : null,
        path: json_.containsKey('path') ? json_['path'] as core.String : null,
        pathFilters: json_.containsKey('pathFilters')
            ? json_['pathFilters'] as core.Map<core.String, core.dynamic>
            : null,
        pathValueMatchers: json_.containsKey('pathValueMatchers')
            ? (json_['pathValueMatchers']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  GoogleCloudRecommenderV1ValueMatcher.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        resource: json_.containsKey('resource')
            ? json_['resource'] as core.String
            : null,
        resourceType: json_.containsKey('resourceType')
            ? json_['resourceType'] as core.String
            : null,
        sourcePath: json_.containsKey('sourcePath')
            ? json_['sourcePath'] as core.String
            : null,
        sourceResource: json_.containsKey('sourceResource')
            ? json_['sourceResource'] as core.String
            : null,
        value: json_.containsKey('value') ? json_['value'] : null,
        valueMatcher: json_.containsKey('valueMatcher')
            ? GoogleCloudRecommenderV1ValueMatcher.fromJson(
                json_['valueMatcher'] as core.Map<core.String, core.dynamic>)
            : null,
      );