toJson method
Implementation
Map<String, Object?> toJson() => <String, Object?>{
'id': id,
'label': label,
if (feature != null) 'feature': feature!.name,
'status': status.name,
'elapsedMs': elapsed.inMilliseconds,
if (response != null) 'response': response,
if (detail != null) 'detail': detail,
if (details.isNotEmpty) 'details': details,
};