DestinationDescription.fromJson constructor

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

Implementation

factory DestinationDescription.fromJson(Map<String, dynamic> json) {
  return DestinationDescription(
    destinationId: json['DestinationId'] as String,
    elasticsearchDestinationDescription:
        json['ElasticsearchDestinationDescription'] != null
            ? ElasticsearchDestinationDescription.fromJson(
                json['ElasticsearchDestinationDescription']
                    as Map<String, dynamic>)
            : null,
    extendedS3DestinationDescription:
        json['ExtendedS3DestinationDescription'] != null
            ? ExtendedS3DestinationDescription.fromJson(
                json['ExtendedS3DestinationDescription']
                    as Map<String, dynamic>)
            : null,
    httpEndpointDestinationDescription:
        json['HttpEndpointDestinationDescription'] != null
            ? HttpEndpointDestinationDescription.fromJson(
                json['HttpEndpointDestinationDescription']
                    as Map<String, dynamic>)
            : null,
    redshiftDestinationDescription: json['RedshiftDestinationDescription'] !=
            null
        ? RedshiftDestinationDescription.fromJson(
            json['RedshiftDestinationDescription'] as Map<String, dynamic>)
        : null,
    s3DestinationDescription: json['S3DestinationDescription'] != null
        ? S3DestinationDescription.fromJson(
            json['S3DestinationDescription'] as Map<String, dynamic>)
        : null,
    splunkDestinationDescription: json['SplunkDestinationDescription'] != null
        ? SplunkDestinationDescription.fromJson(
            json['SplunkDestinationDescription'] as Map<String, dynamic>)
        : null,
  );
}