WorkflowScheme.fromJson constructor

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

Implementation

factory WorkflowScheme.fromJson(Map<String, Object?> json) {
  return WorkflowScheme(
    defaultWorkflow: json[r'defaultWorkflow'] as String?,
    description: json[r'description'] as String?,
    draft: json[r'draft'] as bool? ?? false,
    id: (json[r'id'] as num?)?.toInt(),
    issueTypeMappings: json[r'issueTypeMappings'] as Map<String, Object?>?,
    issueTypes: json[r'issueTypes'] as Map<String, Object?>?,
    lastModified: json[r'lastModified'] as String?,
    lastModifiedUser: json[r'lastModifiedUser'] != null
        ? User.fromJson(json[r'lastModifiedUser']! as Map<String, Object?>)
        : null,
    name: json[r'name'] as String?,
    originalDefaultWorkflow: json[r'originalDefaultWorkflow'] as String?,
    originalIssueTypeMappings:
        json[r'originalIssueTypeMappings'] as Map<String, Object?>?,
    self: json[r'self'] as String?,
    updateDraftIfNeeded: json[r'updateDraftIfNeeded'] as bool? ?? false,
  );
}