GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow.fromJson constructor

GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow.fromJson(
  1. Map json_
)

Implementation

GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow.fromJson(core.Map json_)
    : this(
        authCode: json_.containsKey('authCode')
            ? json_['authCode'] as core.String
            : null,
        authUri: json_.containsKey('authUri')
            ? json_['authUri'] as core.String
            : null,
        clientId: json_.containsKey('clientId')
            ? json_['clientId'] as core.String
            : null,
        clientSecret: json_.containsKey('clientSecret')
            ? GoogleCloudConnectorsV1Secret.fromJson(
                json_['clientSecret'] as core.Map<core.String, core.dynamic>)
            : null,
        enablePkce: json_.containsKey('enablePkce')
            ? json_['enablePkce'] as core.bool
            : null,
        pkceVerifier: json_.containsKey('pkceVerifier')
            ? json_['pkceVerifier'] as core.String
            : null,
        redirectUri: json_.containsKey('redirectUri')
            ? json_['redirectUri'] as core.String
            : null,
        scopes: json_.containsKey('scopes')
            ? (json_['scopes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );