Pipeline.fromJson constructor

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

Implementation

factory Pipeline.fromJson(Map<String, dynamic> json) {
  return Pipeline(
    activities: (json['activities'] as List?)
        ?.whereNotNull()
        .map((e) => PipelineActivity.fromJson(e as Map<String, dynamic>))
        .toList(),
    arn: json['arn'] as String?,
    creationTime: timeStampFromJson(json['creationTime']),
    lastUpdateTime: timeStampFromJson(json['lastUpdateTime']),
    name: json['name'] as String?,
    reprocessingSummaries: (json['reprocessingSummaries'] as List?)
        ?.whereNotNull()
        .map((e) => ReprocessingSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}