GoogleCloudDialogflowCxV3WebhookGenericWebService.fromMap constructor
GoogleCloudDialogflowCxV3WebhookGenericWebService.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GoogleCloudDialogflowCxV3WebhookGenericWebService.fromMap(Map<String, dynamic> map) {
return GoogleCloudDialogflowCxV3WebhookGenericWebService(
allowedCaCerts: (() { final guardedValue = map['allowedCaCerts']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as List).cast<String>()); })(),
httpMethod: (() { final guardedValue = map['httpMethod']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowCxV3WebhookGenericWebServiceHttpMethod.fromValue(guardedValue as String)); })(),
parameterMapping: (() { final guardedValue = map['parameterMapping']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as Map).cast<String, String>()); })(),
password: (() { final guardedValue = map['password']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
requestBody: (() { final guardedValue = map['requestBody']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
requestHeaders: (() { final guardedValue = map['requestHeaders']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as Map).cast<String, String>()); })(),
uri: pulumi.Input.fromValue(map['uri'] as String),
username: (() { final guardedValue = map['username']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
webhookType: (() { final guardedValue = map['webhookType']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowCxV3WebhookGenericWebServiceWebhookType.fromValue(guardedValue as String)); })(),
);
}