Action.fromJson constructor

Action.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Action.fromJson(Map<String, dynamic> json) {
  return Action(
    cloudwatchAlarm: json['cloudwatchAlarm'] != null
        ? CloudwatchAlarmAction.fromJson(
            json['cloudwatchAlarm'] as Map<String, dynamic>)
        : null,
    cloudwatchLogs: json['cloudwatchLogs'] != null
        ? CloudwatchLogsAction.fromJson(
            json['cloudwatchLogs'] as Map<String, dynamic>)
        : null,
    cloudwatchMetric: json['cloudwatchMetric'] != null
        ? CloudwatchMetricAction.fromJson(
            json['cloudwatchMetric'] as Map<String, dynamic>)
        : null,
    dynamoDB: json['dynamoDB'] != null
        ? DynamoDBAction.fromJson(json['dynamoDB'] as Map<String, dynamic>)
        : null,
    dynamoDBv2: json['dynamoDBv2'] != null
        ? DynamoDBv2Action.fromJson(
            json['dynamoDBv2'] as Map<String, dynamic>)
        : null,
    elasticsearch: json['elasticsearch'] != null
        ? ElasticsearchAction.fromJson(
            json['elasticsearch'] as Map<String, dynamic>)
        : null,
    firehose: json['firehose'] != null
        ? FirehoseAction.fromJson(json['firehose'] as Map<String, dynamic>)
        : null,
    http: json['http'] != null
        ? HttpAction.fromJson(json['http'] as Map<String, dynamic>)
        : null,
    iotAnalytics: json['iotAnalytics'] != null
        ? IotAnalyticsAction.fromJson(
            json['iotAnalytics'] as Map<String, dynamic>)
        : null,
    iotEvents: json['iotEvents'] != null
        ? IotEventsAction.fromJson(json['iotEvents'] as Map<String, dynamic>)
        : null,
    iotSiteWise: json['iotSiteWise'] != null
        ? IotSiteWiseAction.fromJson(
            json['iotSiteWise'] as Map<String, dynamic>)
        : null,
    kafka: json['kafka'] != null
        ? KafkaAction.fromJson(json['kafka'] as Map<String, dynamic>)
        : null,
    kinesis: json['kinesis'] != null
        ? KinesisAction.fromJson(json['kinesis'] as Map<String, dynamic>)
        : null,
    lambda: json['lambda'] != null
        ? LambdaAction.fromJson(json['lambda'] as Map<String, dynamic>)
        : null,
    republish: json['republish'] != null
        ? RepublishAction.fromJson(json['republish'] as Map<String, dynamic>)
        : null,
    s3: json['s3'] != null
        ? S3Action.fromJson(json['s3'] as Map<String, dynamic>)
        : null,
    salesforce: json['salesforce'] != null
        ? SalesforceAction.fromJson(
            json['salesforce'] as Map<String, dynamic>)
        : null,
    sns: json['sns'] != null
        ? SnsAction.fromJson(json['sns'] as Map<String, dynamic>)
        : null,
    sqs: json['sqs'] != null
        ? SqsAction.fromJson(json['sqs'] as Map<String, dynamic>)
        : null,
    stepFunctions: json['stepFunctions'] != null
        ? StepFunctionsAction.fromJson(
            json['stepFunctions'] as Map<String, dynamic>)
        : null,
    timestream: json['timestream'] != null
        ? TimestreamAction.fromJson(
            json['timestream'] as Map<String, dynamic>)
        : null,
  );
}