toJson method
Canonical operation data used for reporting and checksum calculation.
Saved migration files remain Dart source; this is not a persistence format.
Implementation
Map<String, Object?> toJson() => {
'format': 3,
'id': id,
'dialect': dialect.name,
if (snapshot != null) 'snapshot': snapshot!.toJson(),
if (previous != null) 'previous': previous,
'steps': [for (final step in steps) step.toJson()],
};