toJson method
Implementation
@override
Map<String, Object?> toJson(TraceBlobWriter blob) => <String, Object?>{
'id': id,
'width': width,
'height': height,
'format': format.name,
'pixels': blob.add(pixels),
'mipLevels': mipLevels?.map(blob.add).toList(),
};