PipelineObject.fromJson constructor

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

Implementation

factory PipelineObject.fromJson(Map<String, dynamic> json) {
  return PipelineObject(
    fields: (json['fields'] as List)
        .whereNotNull()
        .map((e) => Field.fromJson(e as Map<String, dynamic>))
        .toList(),
    id: json['id'] as String,
    name: json['name'] as String,
  );
}