GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig.fromJson constructor

GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig.fromJson(
  1. Map json_
)

Implementation

GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig.fromJson(
    core.Map json_)
    : this(
        accessLevels: json_.containsKey('accessLevels')
            ? (json_['accessLevels'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        egressPolicies: json_.containsKey('egressPolicies')
            ? (json_['egressPolicies'] as core.List)
                .map((value) =>
                    GoogleIdentityAccesscontextmanagerV1EgressPolicy.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        ingressPolicies: json_.containsKey('ingressPolicies')
            ? (json_['ingressPolicies'] as core.List)
                .map((value) =>
                    GoogleIdentityAccesscontextmanagerV1IngressPolicy
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        resources: json_.containsKey('resources')
            ? (json_['resources'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        restrictedServices: json_.containsKey('restrictedServices')
            ? (json_['restrictedServices'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        vpcAccessibleServices: json_.containsKey('vpcAccessibleServices')
            ? GoogleIdentityAccesscontextmanagerV1VpcAccessibleServices
                .fromJson(json_['vpcAccessibleServices']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );