GoogleCloudApigeeV1EnvironmentConfig.fromJson constructor

GoogleCloudApigeeV1EnvironmentConfig.fromJson(
  1. Map json_
)

Implementation

GoogleCloudApigeeV1EnvironmentConfig.fromJson(core.Map json_)
    : this(
        addonsConfig: json_.containsKey('addonsConfig')
            ? GoogleCloudApigeeV1RuntimeAddonsConfig.fromJson(
                json_['addonsConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        arcConfigLocation: json_.containsKey('arcConfigLocation')
            ? json_['arcConfigLocation'] as core.String
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        dataCollectors: json_.containsKey('dataCollectors')
            ? (json_['dataCollectors'] as core.List)
                .map((value) =>
                    GoogleCloudApigeeV1DataCollectorConfig.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        debugMask: json_.containsKey('debugMask')
            ? GoogleCloudApigeeV1DebugMask.fromJson(
                json_['debugMask'] as core.Map<core.String, core.dynamic>)
            : null,
        deploymentGroups: json_.containsKey('deploymentGroups')
            ? (json_['deploymentGroups'] as core.List)
                .map((value) =>
                    GoogleCloudApigeeV1DeploymentGroupConfig.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        deployments: json_.containsKey('deployments')
            ? (json_['deployments'] as core.List)
                .map((value) => GoogleCloudApigeeV1DeploymentConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        envScopedRevisionId: json_.containsKey('envScopedRevisionId')
            ? json_['envScopedRevisionId'] as core.String
            : null,
        featureFlags: json_.containsKey('featureFlags')
            ? (json_['featureFlags'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        flowhooks: json_.containsKey('flowhooks')
            ? (json_['flowhooks'] as core.List)
                .map((value) => GoogleCloudApigeeV1FlowHookConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        forwardProxyUri: json_.containsKey('forwardProxyUri')
            ? json_['forwardProxyUri'] as core.String
            : null,
        gatewayConfigLocation: json_.containsKey('gatewayConfigLocation')
            ? json_['gatewayConfigLocation'] as core.String
            : null,
        keystores: json_.containsKey('keystores')
            ? (json_['keystores'] as core.List)
                .map((value) => GoogleCloudApigeeV1KeystoreConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        provider: json_.containsKey('provider')
            ? json_['provider'] as core.String
            : null,
        pubsubTopic: json_.containsKey('pubsubTopic')
            ? json_['pubsubTopic'] as core.String
            : null,
        resourceReferences: json_.containsKey('resourceReferences')
            ? (json_['resourceReferences'] as core.List)
                .map((value) => GoogleCloudApigeeV1ReferenceConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        resources: json_.containsKey('resources')
            ? (json_['resources'] as core.List)
                .map((value) => GoogleCloudApigeeV1ResourceConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        revisionId: json_.containsKey('revisionId')
            ? json_['revisionId'] as core.String
            : null,
        sequenceNumber: json_.containsKey('sequenceNumber')
            ? json_['sequenceNumber'] as core.String
            : null,
        targets: json_.containsKey('targets')
            ? (json_['targets'] as core.List)
                .map((value) =>
                    GoogleCloudApigeeV1TargetServerConfig.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        traceConfig: json_.containsKey('traceConfig')
            ? GoogleCloudApigeeV1RuntimeTraceConfig.fromJson(
                json_['traceConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
      );