HttpEndpointDestinationDescription.fromJson constructor

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

Implementation

factory HttpEndpointDestinationDescription.fromJson(
    Map<String, dynamic> json) {
  return HttpEndpointDestinationDescription(
    bufferingHints: json['BufferingHints'] != null
        ? HttpEndpointBufferingHints.fromJson(
            json['BufferingHints'] as Map<String, dynamic>)
        : null,
    cloudWatchLoggingOptions: json['CloudWatchLoggingOptions'] != null
        ? CloudWatchLoggingOptions.fromJson(
            json['CloudWatchLoggingOptions'] as Map<String, dynamic>)
        : null,
    endpointConfiguration: json['EndpointConfiguration'] != null
        ? HttpEndpointDescription.fromJson(
            json['EndpointConfiguration'] as Map<String, dynamic>)
        : null,
    processingConfiguration: json['ProcessingConfiguration'] != null
        ? ProcessingConfiguration.fromJson(
            json['ProcessingConfiguration'] as Map<String, dynamic>)
        : null,
    requestConfiguration: json['RequestConfiguration'] != null
        ? HttpEndpointRequestConfiguration.fromJson(
            json['RequestConfiguration'] as Map<String, dynamic>)
        : null,
    retryOptions: json['RetryOptions'] != null
        ? HttpEndpointRetryOptions.fromJson(
            json['RetryOptions'] as Map<String, dynamic>)
        : null,
    roleARN: json['RoleARN'] as String?,
    s3BackupMode:
        (json['S3BackupMode'] as String?)?.toHttpEndpointS3BackupMode(),
    s3DestinationDescription: json['S3DestinationDescription'] != null
        ? S3DestinationDescription.fromJson(
            json['S3DestinationDescription'] as Map<String, dynamic>)
        : null,
  );
}