Target.fromJson constructor

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

Implementation

factory Target.fromJson(Map<String, dynamic> json) {
  return Target(
    arn: json['Arn'] as String,
    id: json['Id'] as String,
    batchParameters: json['BatchParameters'] != null
        ? BatchParameters.fromJson(
            json['BatchParameters'] as Map<String, dynamic>)
        : null,
    deadLetterConfig: json['DeadLetterConfig'] != null
        ? DeadLetterConfig.fromJson(
            json['DeadLetterConfig'] as Map<String, dynamic>)
        : null,
    ecsParameters: json['EcsParameters'] != null
        ? EcsParameters.fromJson(
            json['EcsParameters'] as Map<String, dynamic>)
        : null,
    httpParameters: json['HttpParameters'] != null
        ? HttpParameters.fromJson(
            json['HttpParameters'] as Map<String, dynamic>)
        : null,
    input: json['Input'] as String?,
    inputPath: json['InputPath'] as String?,
    inputTransformer: json['InputTransformer'] != null
        ? InputTransformer.fromJson(
            json['InputTransformer'] as Map<String, dynamic>)
        : null,
    kinesisParameters: json['KinesisParameters'] != null
        ? KinesisParameters.fromJson(
            json['KinesisParameters'] as Map<String, dynamic>)
        : null,
    redshiftDataParameters: json['RedshiftDataParameters'] != null
        ? RedshiftDataParameters.fromJson(
            json['RedshiftDataParameters'] as Map<String, dynamic>)
        : null,
    retryPolicy: json['RetryPolicy'] != null
        ? RetryPolicy.fromJson(json['RetryPolicy'] as Map<String, dynamic>)
        : null,
    roleArn: json['RoleArn'] as String?,
    runCommandParameters: json['RunCommandParameters'] != null
        ? RunCommandParameters.fromJson(
            json['RunCommandParameters'] as Map<String, dynamic>)
        : null,
    sqsParameters: json['SqsParameters'] != null
        ? SqsParameters.fromJson(
            json['SqsParameters'] as Map<String, dynamic>)
        : null,
  );
}