CreatePipelineOutput.fromJson constructor

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

Implementation

factory CreatePipelineOutput.fromJson(Map<String, dynamic> json) {
  return CreatePipelineOutput(
    pipeline: json['pipeline'] != null
        ? PipelineDeclaration.fromJson(
            json['pipeline'] as Map<String, dynamic>)
        : null,
    tags: (json['tags'] as List?)
        ?.whereNotNull()
        .map((e) => Tag.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}