GoogleDevtoolsCloudbuildV2GitHubEnterpriseConfig.fromJson constructor

GoogleDevtoolsCloudbuildV2GitHubEnterpriseConfig.fromJson(
  1. Map json_
)

Implementation

GoogleDevtoolsCloudbuildV2GitHubEnterpriseConfig.fromJson(core.Map json_)
    : this(
        apiKey: json_.containsKey('apiKey')
            ? json_['apiKey'] as core.String
            : null,
        appId:
            json_.containsKey('appId') ? json_['appId'] as core.String : null,
        appInstallationId: json_.containsKey('appInstallationId')
            ? json_['appInstallationId'] as core.String
            : null,
        appSlug: json_.containsKey('appSlug')
            ? json_['appSlug'] as core.String
            : null,
        hostUri: json_.containsKey('hostUri')
            ? json_['hostUri'] as core.String
            : null,
        privateKeySecretVersion: json_.containsKey('privateKeySecretVersion')
            ? json_['privateKeySecretVersion'] as core.String
            : null,
        serverVersion: json_.containsKey('serverVersion')
            ? json_['serverVersion'] as core.String
            : null,
        serviceDirectoryConfig: json_.containsKey('serviceDirectoryConfig')
            ? GoogleDevtoolsCloudbuildV2ServiceDirectoryConfig.fromJson(
                json_['serviceDirectoryConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        sslCa:
            json_.containsKey('sslCa') ? json_['sslCa'] as core.String : null,
        webhookSecretSecretVersion:
            json_.containsKey('webhookSecretSecretVersion')
                ? json_['webhookSecretSecretVersion'] as core.String
                : null,
      );