SentryGpu.fromJson constructor

SentryGpu.fromJson(
  1. Map<String, dynamic> data
)

Deserializes a SentryGpu from JSON Map.

Implementation

factory SentryGpu.fromJson(Map<String, dynamic> data) => SentryGpu(
      name: data['name'],
      id: data['id'],
      vendorId: data['vendor_id'],
      vendorName: data['vendor_name'],
      memorySize: data['memory_size'],
      apiType: data['api_type'],
      multiThreadedRendering: data['multi_threaded_rendering'],
      version: data['version'],
      npotSupport: data['npot_support'],
      graphicsShaderLevel: data['graphics_shader_level'],
      maxTextureSize: data['max_texture_size'],
      supportsComputeShaders: data['supports_compute_shaders'],
      supportsDrawCallInstancing: data['supports_draw_call_instancing'],
      supportsGeometryShaders: data['supports_geometry_shaders'],
      supportsRayTracing: data['supports_ray_tracing'],
    );