AnalyzerOrgPolicy.fromJson constructor

AnalyzerOrgPolicy.fromJson(
  1. Map json_
)

Implementation

AnalyzerOrgPolicy.fromJson(core.Map json_)
    : this(
        appliedResource: json_.containsKey('appliedResource')
            ? json_['appliedResource'] as core.String
            : null,
        attachedResource: json_.containsKey('attachedResource')
            ? json_['attachedResource'] as core.String
            : null,
        inheritFromParent: json_.containsKey('inheritFromParent')
            ? json_['inheritFromParent'] as core.bool
            : null,
        reset:
            json_.containsKey('reset') ? json_['reset'] as core.bool : null,
        rules: json_.containsKey('rules')
            ? (json_['rules'] as core.List)
                .map((value) => GoogleCloudAssetV1Rule.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );