toJson method
Implementation
Map<String, dynamic> toJson() => {
'type': kType,
'mission_id': missionId,
'step_index': stepIndex,
'needle': needle,
'screen': screen,
'candidates': candidates,
'timestamp': timestamp.toIso8601String(),
if (failureReason != null) 'failure_reason': failureReason,
};