GetPipelineStateOutput.fromJson constructor

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

Implementation

factory GetPipelineStateOutput.fromJson(Map<String, dynamic> json) {
  return GetPipelineStateOutput(
    created: timeStampFromJson(json['created']),
    pipelineName: json['pipelineName'] as String?,
    pipelineVersion: json['pipelineVersion'] as int?,
    stageStates: (json['stageStates'] as List?)
        ?.whereNotNull()
        .map((e) => StageState.fromJson(e as Map<String, dynamic>))
        .toList(),
    updated: timeStampFromJson(json['updated']),
  );
}