GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig.fromJson constructor

GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig.fromJson(
    core.Map json_)
    : this(
        clientId: json_.containsKey('clientId')
            ? json_['clientId'] as core.String
            : null,
        clientSecret: json_.containsKey('clientSecret')
            ? json_['clientSecret'] as core.String
            : null,
        scopes: json_.containsKey('scopes')
            ? (json_['scopes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        tokenEndpoint: json_.containsKey('tokenEndpoint')
            ? json_['tokenEndpoint'] as core.String
            : null,
      );