JiraStatus.fromJson constructor
Implementation
factory JiraStatus.fromJson(Map<String, Object?> json) {
return JiraStatus(
description: json[r'description'] as String?,
id: json[r'id'] as String?,
name: json[r'name'] as String?,
scope: json[r'scope'] != null
? StatusScope.fromJson(json[r'scope']! as Map<String, Object?>)
: null,
statusCategory: json[r'statusCategory'] != null
? JiraStatusStatusCategory.fromValue(
json[r'statusCategory']! as String)
: null,
usages: (json[r'usages'] as List<Object?>?)
?.map((i) => ProjectIssueTypes.fromJson(
i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
workflowUsages: (json[r'workflowUsages'] as List<Object?>?)
?.map((i) => WorkflowUsages.fromJson(
i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
);
}