toJson method
Converts this snapshot into a serialization-friendly map.
Implementation
Map<String, Object?> toJson() {
return <String, Object?>{
'sequence': sequence,
'renderGeneration': renderGeneration,
'degradationLevel': degradationLevel.name,
'renderDurationUs': renderDuration.inMicroseconds,
'width': width,
'height': height,
'lines': List<String>.unmodifiable(lines),
'changeSummary': changeSummary.toJson(),
};
}