WorkflowShare.fromJson constructor
Implementation
factory WorkflowShare.fromJson(Map<String, dynamic> json) {
return WorkflowShare(
id: json['id'],
userId: json['userId'],
workflowId: json['workflowId'],
role: json['role'],
createdAt: json['createdAt'] != null ? DateTime.parse(json['createdAt']) : null,
updatedAt: json['updatedAt'] != null ? DateTime.parse(json['updatedAt']) : null,
);
}