InputDescription.fromJson constructor

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

Implementation

factory InputDescription.fromJson(Map<String, dynamic> json) {
  return InputDescription(
    inAppStreamNames: (json['InAppStreamNames'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    inputId: json['InputId'] as String?,
    inputParallelism: json['InputParallelism'] != null
        ? InputParallelism.fromJson(
            json['InputParallelism'] as Map<String, dynamic>)
        : null,
    inputProcessingConfigurationDescription:
        json['InputProcessingConfigurationDescription'] != null
            ? InputProcessingConfigurationDescription.fromJson(
                json['InputProcessingConfigurationDescription']
                    as Map<String, dynamic>)
            : null,
    inputSchema: json['InputSchema'] != null
        ? SourceSchema.fromJson(json['InputSchema'] as Map<String, dynamic>)
        : null,
    inputStartingPositionConfiguration:
        json['InputStartingPositionConfiguration'] != null
            ? InputStartingPositionConfiguration.fromJson(
                json['InputStartingPositionConfiguration']
                    as Map<String, dynamic>)
            : null,
    kinesisFirehoseInputDescription:
        json['KinesisFirehoseInputDescription'] != null
            ? KinesisFirehoseInputDescription.fromJson(
                json['KinesisFirehoseInputDescription']
                    as Map<String, dynamic>)
            : null,
    kinesisStreamsInputDescription: json['KinesisStreamsInputDescription'] !=
            null
        ? KinesisStreamsInputDescription.fromJson(
            json['KinesisStreamsInputDescription'] as Map<String, dynamic>)
        : null,
    namePrefix: json['NamePrefix'] as String?,
  );
}