SentryGpu.fromJson constructor
SentryGpu.fromJson(
- Map<String, dynamic> data
)
Deserializes a SentryGpu from JSON Map.
Implementation
factory SentryGpu.fromJson(Map<String, dynamic> data) {
final json = AccessAwareMap(data);
return SentryGpu(
name: json['name'],
id: json['id'],
vendorId: json['vendor_id'],
vendorName: json['vendor_name'],
memorySize: json['memory_size'],
apiType: json['api_type'],
multiThreadedRendering: json['multi_threaded_rendering'],
version: json['version'],
npotSupport: json['npot_support'],
graphicsShaderLevel: json['graphics_shader_level'],
maxTextureSize: json['max_texture_size'],
supportsComputeShaders: json['supports_compute_shaders'],
supportsDrawCallInstancing: json['supports_draw_call_instancing'],
supportsGeometryShaders: json['supports_geometry_shaders'],
supportsRayTracing: json['supports_ray_tracing'],
unknown: json.notAccessed(),
);
}