toJson method
Implementation
@override
Map<String, Object?> toJson(TraceBlobWriter blob) => <String, Object?>{
'texture': texture,
'rgba': blob.add(rgba),
'region': region == null ? null : screenRectToJson(region!),
'mipLevel': mipLevel,
};
@override
Map<String, Object?> toJson(TraceBlobWriter blob) => <String, Object?>{
'texture': texture,
'rgba': blob.add(rgba),
'region': region == null ? null : screenRectToJson(region!),
'mipLevel': mipLevel,
};