ServicePerimeterConfig.fromJson constructor

ServicePerimeterConfig.fromJson(
  1. Map json_
)

Implementation

ServicePerimeterConfig.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) => EgressPolicy.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        ingressPolicies: json_.containsKey('ingressPolicies')
            ? (json_['ingressPolicies'] as core.List)
                .map((value) => IngressPolicy.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')
            ? VpcAccessibleServices.fromJson(json_['vpcAccessibleServices']
                as core.Map<core.String, core.dynamic>)
            : null,
      );