GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials.fromJson constructor

GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials.fromJson(
  1. Map json_
)

Implementation

GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials.fromJson(
    core.Map json_)
    : this(
        accessToken: json_.containsKey('accessToken')
            ? GoogleCloudIntegrationsV1alphaAccessToken.fromJson(
                json_['accessToken'] as core.Map<core.String, core.dynamic>)
            : null,
        clientId: json_.containsKey('clientId')
            ? json_['clientId'] as core.String
            : null,
        clientSecret: json_.containsKey('clientSecret')
            ? json_['clientSecret'] as core.String
            : null,
        password: json_.containsKey('password')
            ? json_['password'] as core.String
            : null,
        requestType: json_.containsKey('requestType')
            ? json_['requestType'] as core.String
            : null,
        scope:
            json_.containsKey('scope') ? json_['scope'] as core.String : null,
        tokenEndpoint: json_.containsKey('tokenEndpoint')
            ? json_['tokenEndpoint'] as core.String
            : null,
        tokenParams: json_.containsKey('tokenParams')
            ? GoogleCloudIntegrationsV1alphaParameterMap.fromJson(
                json_['tokenParams'] as core.Map<core.String, core.dynamic>)
            : null,
        username: json_.containsKey('username')
            ? json_['username'] as core.String
            : null,
      );