toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (createTime != null) 'createTime': createTime!,
      if (endTime != null) 'endTime': endTime!,
      if (error != null) 'error': error!,
      if (execution != null) 'execution': execution!,
      if (executorDetail != null) 'executorDetail': executorDetail!,
      if (inputs != null) 'inputs': inputs!,
      if (outputs != null) 'outputs': outputs!,
      if (parentTaskId != null) 'parentTaskId': parentTaskId!,
      if (pipelineTaskStatus != null)
        'pipelineTaskStatus': pipelineTaskStatus!,
      if (startTime != null) 'startTime': startTime!,
      if (state != null) 'state': state!,
      if (taskId != null) 'taskId': taskId!,
      if (taskName != null) 'taskName': taskName!,
    };