GoogleCloudIntegrationsV1alphaCredential.fromJson constructor

GoogleCloudIntegrationsV1alphaCredential.fromJson(
  1. Map json_
)

Implementation

GoogleCloudIntegrationsV1alphaCredential.fromJson(core.Map json_)
    : this(
        authToken: json_.containsKey('authToken')
            ? GoogleCloudIntegrationsV1alphaAuthToken.fromJson(
                json_['authToken'] as core.Map<core.String, core.dynamic>)
            : null,
        credentialType: json_.containsKey('credentialType')
            ? json_['credentialType'] as core.String
            : null,
        jwt: json_.containsKey('jwt')
            ? GoogleCloudIntegrationsV1alphaJwt.fromJson(
                json_['jwt'] as core.Map<core.String, core.dynamic>)
            : null,
        oauth2AuthorizationCode: json_.containsKey('oauth2AuthorizationCode')
            ? GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode.fromJson(
                json_['oauth2AuthorizationCode']
                    as core.Map<core.String, core.dynamic>)
            : null,
        oauth2ClientCredentials: json_.containsKey('oauth2ClientCredentials')
            ? GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials.fromJson(
                json_['oauth2ClientCredentials']
                    as core.Map<core.String, core.dynamic>)
            : null,
        oauth2ResourceOwnerCredentials:
            json_.containsKey('oauth2ResourceOwnerCredentials')
                ? GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials
                    .fromJson(json_['oauth2ResourceOwnerCredentials']
                        as core.Map<core.String, core.dynamic>)
                : null,
        oidcToken: json_.containsKey('oidcToken')
            ? GoogleCloudIntegrationsV1alphaOidcToken.fromJson(
                json_['oidcToken'] as core.Map<core.String, core.dynamic>)
            : null,
        serviceAccountCredentials:
            json_.containsKey('serviceAccountCredentials')
                ? GoogleCloudIntegrationsV1alphaServiceAccountCredentials
                    .fromJson(json_['serviceAccountCredentials']
                        as core.Map<core.String, core.dynamic>)
                : null,
        usernameAndPassword: json_.containsKey('usernameAndPassword')
            ? GoogleCloudIntegrationsV1alphaUsernameAndPassword.fromJson(
                json_['usernameAndPassword']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );