Pipeline.fromJson constructor

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

Implementation

factory Pipeline.fromJson(Map<String, dynamic> json) {
  return Pipeline(
    createdBy: json['CreatedBy'] != null
        ? UserContext.fromJson(json['CreatedBy'] as Map<String, dynamic>)
        : null,
    creationTime: timeStampFromJson(json['CreationTime']),
    lastModifiedBy: json['LastModifiedBy'] != null
        ? UserContext.fromJson(json['LastModifiedBy'] as Map<String, dynamic>)
        : null,
    lastModifiedTime: timeStampFromJson(json['LastModifiedTime']),
    lastRunTime: timeStampFromJson(json['LastRunTime']),
    pipelineArn: json['PipelineArn'] as String?,
    pipelineDescription: json['PipelineDescription'] as String?,
    pipelineDisplayName: json['PipelineDisplayName'] as String?,
    pipelineName: json['PipelineName'] as String?,
    pipelineStatus: (json['PipelineStatus'] as String?)?.toPipelineStatus(),
    roleArn: json['RoleArn'] as String?,
    tags: (json['Tags'] as List?)
        ?.whereNotNull()
        .map((e) => Tag.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}