toEntity method
Implementation
@override
WorkflowEntity toEntity({String? appId}) {
return WorkflowEntity(
name: (name != null) ? name : null,
workflowTask: (workflowTask != null)
? workflowTask!.map((item) => item.toEntity(appId: appId)).toList()
: null,
appId: appId,
);
}