toMap method
Implementation
Map<String, Object?> toMap() => {
'mission_id': missionId,
'step_index': stepIndex,
'action': action,
if (matchSource != null) 'match_source': matchSource,
if (execStrategy != null) 'exec_strategy': execStrategy,
'evidence': evidence,
'attempts': attempts,
'duration_ms': duration.inMilliseconds,
'success': success,
if (failureReason != null) 'failure_reason': failureReason,
if (screen != null) 'screen': screen,
};