toJson method Null safety

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

Converts the report entry to a JSON compatible representation.

Implementation

@override
Map<String, dynamic> toJson() => {
      'endTime': endTime?.millisecondsSinceEpoch,
      'error': error,
      'id': id,
      'startTime': startTime.millisecondsSinceEpoch,
      'step': step,
      'subStep': subStep,
    };