toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'type': kType,
      'mission_id': missionId,
      'step_index': stepIndex,
      'phase': StepPhaseCodec.toWire(phase),
      'timestamp': timestamp.toIso8601String(),
      if (hints.isNotEmpty) 'hints': hints,
    };