IamPolicySearchResult.fromJson constructor

IamPolicySearchResult.fromJson(
  1. Map json_
)

Implementation

IamPolicySearchResult.fromJson(core.Map json_)
    : this(
        assetType: json_.containsKey('assetType')
            ? json_['assetType'] as core.String
            : null,
        explanation: json_.containsKey('explanation')
            ? Explanation.fromJson(
                json_['explanation'] as core.Map<core.String, core.dynamic>)
            : null,
        folders: json_.containsKey('folders')
            ? (json_['folders'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        organization: json_.containsKey('organization')
            ? json_['organization'] as core.String
            : null,
        policy: json_.containsKey('policy')
            ? Policy.fromJson(
                json_['policy'] as core.Map<core.String, core.dynamic>)
            : null,
        project: json_.containsKey('project')
            ? json_['project'] as core.String
            : null,
        resource: json_.containsKey('resource')
            ? json_['resource'] as core.String
            : null,
      );