toEntity method

  1. @override
WorkflowEntity toEntity({
  1. String? appId,
})
override

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,
  );
}