PipelineDescription.fromJson constructor

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

Implementation

factory PipelineDescription.fromJson(Map<String, dynamic> json) {
  return PipelineDescription(
    fields: (json['fields'] as List)
        .whereNotNull()
        .map((e) => Field.fromJson(e as Map<String, dynamic>))
        .toList(),
    name: json['name'] as String,
    pipelineId: json['pipelineId'] as String,
    description: json['description'] as String?,
    tags: (json['tags'] as List?)
        ?.whereNotNull()
        .map((e) => Tag.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}