Pipeline.fromJson constructor

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

Implementation

factory Pipeline.fromJson(Map<String, dynamic> json) {
  return Pipeline(
    arn: json['Arn'] as String?,
    awsKmsKeyArn: json['AwsKmsKeyArn'] as String?,
    contentConfig: json['ContentConfig'] != null
        ? PipelineOutputConfig.fromJson(
            json['ContentConfig'] as Map<String, dynamic>)
        : null,
    id: json['Id'] as String?,
    inputBucket: json['InputBucket'] as String?,
    name: json['Name'] as String?,
    notifications: json['Notifications'] != null
        ? Notifications.fromJson(
            json['Notifications'] as Map<String, dynamic>)
        : null,
    outputBucket: json['OutputBucket'] as String?,
    role: json['Role'] as String?,
    status: json['Status'] as String?,
    thumbnailConfig: json['ThumbnailConfig'] != null
        ? PipelineOutputConfig.fromJson(
            json['ThumbnailConfig'] as Map<String, dynamic>)
        : null,
  );
}