GoogleCloudDialogflowCxV3WebhookGenericWebService.fromJson constructor
GoogleCloudDialogflowCxV3WebhookGenericWebService.fromJson(
- Map json_
Implementation
GoogleCloudDialogflowCxV3WebhookGenericWebService.fromJson(core.Map json_)
: this(
allowedCaCerts: json_.containsKey('allowedCaCerts')
? (json_['allowedCaCerts'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
httpMethod: json_.containsKey('httpMethod')
? json_['httpMethod'] as core.String
: null,
oauthConfig: json_.containsKey('oauthConfig')
? GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig
.fromJson(json_['oauthConfig']
as core.Map<core.String, core.dynamic>)
: null,
parameterMapping: json_.containsKey('parameterMapping')
? (json_['parameterMapping']
as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
password: json_.containsKey('password')
? json_['password'] as core.String
: null,
requestBody: json_.containsKey('requestBody')
? json_['requestBody'] as core.String
: null,
requestHeaders: json_.containsKey('requestHeaders')
? (json_['requestHeaders'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
serviceAgentAuth: json_.containsKey('serviceAgentAuth')
? json_['serviceAgentAuth'] as core.String
: null,
uri: json_.containsKey('uri') ? json_['uri'] as core.String : null,
username: json_.containsKey('username')
? json_['username'] as core.String
: null,
webhookType: json_.containsKey('webhookType')
? json_['webhookType'] as core.String
: null,
);