WorkflowScope.fromJson constructor

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

Implementation

factory WorkflowScope.fromJson(Map<String, Object?> json) {
  return WorkflowScope(
    project: json[r'project'] != null
        ? ProjectId.fromJson(json[r'project']! as Map<String, Object?>)
        : null,
    type: WorkflowScopeType.fromValue(json[r'type'] as String? ?? ''),
  );
}