toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (completionTime != null) 'completionTime': completionTime!.toJson(),
      if (creationTime != null) 'creationTime': creationTime!.toJson(),
      if (description != null) 'description': description!,
      if (deviceUsageDuration != null)
        'deviceUsageDuration': deviceUsageDuration!.toJson(),
      if (dimensionValue != null)
        'dimensionValue':
            dimensionValue!.map((value) => value.toJson()).toList(),
      if (hasImages != null) 'hasImages': hasImages!,
      if (labels != null)
        'labels': labels!.map((value) => value.toJson()).toList(),
      if (multiStep != null) 'multiStep': multiStep!.toJson(),
      if (name != null) 'name': name!,
      if (outcome != null) 'outcome': outcome!.toJson(),
      if (runDuration != null) 'runDuration': runDuration!.toJson(),
      if (state != null) 'state': state!,
      if (stepId != null) 'stepId': stepId!,
      if (testExecutionStep != null)
        'testExecutionStep': testExecutionStep!.toJson(),
      if (toolExecutionStep != null)
        'toolExecutionStep': toolExecutionStep!.toJson(),
    };