toJson method
Implementation
Map<String, dynamic> toJson() {
return {
if (id != null) 'id': id,
if (versionId != null) 'versionId': versionId,
if (workflowId != null) 'workflowId': workflowId,
if (createdAt != null) 'createdAt': createdAt?.toIso8601String(),
};
}