WorkflowUpdateResponse.fromJson constructor

WorkflowUpdateResponse.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory WorkflowUpdateResponse.fromJson(Map<String, Object?> json) {
  return WorkflowUpdateResponse(
    statuses: (json[r'statuses'] as List<Object?>?)
            ?.map((i) => JiraWorkflowStatus.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    taskId: json[r'taskId'] as String?,
    workflows: (json[r'workflows'] as List<Object?>?)
            ?.map((i) =>
                JiraWorkflow.fromJson(i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
  );
}