toJson method

  1. @override
Map<String, dynamic> toJson()
override

Serialize to JSON.

Implementation

@override
Map<String, dynamic> toJson() => {
      'type': type,
      'timestamp': timestamp.toIso8601String(),
      'runId': runId,
      'pipelineId': pipelineId,
      'gateId': gateId,
      'passed': passed,
      'conditions': conditions,
    };