GoogleCloudDialogflowCxV3beta1WebhookGenericWebService.fromMap constructor

GoogleCloudDialogflowCxV3beta1WebhookGenericWebService.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory GoogleCloudDialogflowCxV3beta1WebhookGenericWebService.fromMap(Map<String, dynamic> map) {
  return GoogleCloudDialogflowCxV3beta1WebhookGenericWebService(
    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(GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceHttpMethod.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(GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceWebhookType.fromValue(guardedValue as String)); })(),
  );
}