GoogleCloudPolicysimulatorV1ResourceContext.fromJson constructor

GoogleCloudPolicysimulatorV1ResourceContext.fromJson(
  1. Map json_
)

Implementation

GoogleCloudPolicysimulatorV1ResourceContext.fromJson(core.Map json_)
    : this(
        ancestors: json_.containsKey('ancestors')
            ? (json_['ancestors'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        assetType: json_.containsKey('assetType')
            ? json_['assetType'] as core.String
            : null,
        resource: json_.containsKey('resource')
            ? json_['resource'] as core.String
            : null,
      );