WorkflowExecutionInfo.fromJson constructor

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

Implementation

factory WorkflowExecutionInfo.fromJson(Map<String, dynamic> json) {
  return WorkflowExecutionInfo(
    execution:
        WorkflowExecution.fromJson(json['execution'] as Map<String, dynamic>),
    executionStatus: (json['executionStatus'] as String).toExecutionStatus(),
    startTimestamp:
        nonNullableTimeStampFromJson(json['startTimestamp'] as Object),
    workflowType:
        WorkflowType.fromJson(json['workflowType'] as Map<String, dynamic>),
    cancelRequested: json['cancelRequested'] as bool?,
    closeStatus: (json['closeStatus'] as String?)?.toCloseStatus(),
    closeTimestamp: timeStampFromJson(json['closeTimestamp']),
    parent: json['parent'] != null
        ? WorkflowExecution.fromJson(json['parent'] as Map<String, dynamic>)
        : null,
    tagList: (json['tagList'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}