toJson method

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

Wire form with stable key order (zap first — the envelope reads top-down).

Implementation

@override
Map<String, Object?> toJson() => <String, Object?>{
  'zap': zapProtocolVersion,
  'type': type,
  'id': id,
  'ts': ts,
  'missionId': missionId,
  'verdict': verdict,
  'exit': exit,
  'chainDigest': chainDigest,
  'stepsExecuted': stepsExecuted,
  'stepsTotal': stepsTotal,
  'checks': [for (final c in checks) c.toJson()],
  'at': at,
};