JiraWorkflow.fromJson constructor
Implementation
factory JiraWorkflow.fromJson(Map<String, Object?> json) {
return JiraWorkflow(
description: json[r'description'] as String?,
id: json[r'id'] as String?,
isEditable: json[r'isEditable'] as bool? ?? false,
name: json[r'name'] as String?,
scope: json[r'scope'] != null
? WorkflowScope.fromJson(json[r'scope']! as Map<String, Object?>)
: null,
startPointLayout: json[r'startPointLayout'] != null
? WorkflowLayout.fromJson(
json[r'startPointLayout']! as Map<String, Object?>)
: null,
statuses: (json[r'statuses'] as List<Object?>?)
?.map((i) => WorkflowReferenceStatus.fromJson(
i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
taskId: json[r'taskId'] as String?,
transitions: (json[r'transitions'] as List<Object?>?)
?.map((i) => WorkflowTransitions.fromJson(
i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
usages: (json[r'usages'] as List<Object?>?)
?.map((i) => ProjectIssueTypes.fromJson(
i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
version: json[r'version'] != null
? DocumentVersion.fromJson(json[r'version']! as Map<String, Object?>)
: null,
);
}