WorkflowCreateRequest.fromJson constructor
Implementation
factory WorkflowCreateRequest.fromJson(Map<String, Object?> json) {
return WorkflowCreateRequest(
scope: WorkflowScope.fromJson(
json[r'scope'] as Map<String, Object?>? ?? const {}),
statuses: (json[r'statuses'] as List<Object?>?)
?.map((i) => WorkflowStatusUpdate.fromJson(
i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
workflows: (json[r'workflows'] as List<Object?>?)
?.map((i) => WorkflowCreate.fromJson(
i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
);
}