toJson method

Map<String, Object?> toJson()

Converts this summary 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,
    'frameLines': List<String>.unmodifiable(frameLines),
    'changeSummary': changeSummary.toJson(),
  };
}