toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'os': os,
    'os_version': osVersion,
    'framework': framework,
    'project_id': projectId,
    'device_id': deviceId,
    'device_manufacturer': deviceManufacturer,
    'device_model': deviceModel,
    if (telemetryPayload != null) 'telemetry_payload': telemetryPayload,
    if (errorPayload != null) 'error_payload': errorPayload,
    'timestamp': timestamp,
    'model_filename': modelFilename,
    if (nCtx != null) 'n_ctx': nCtx,
    if (nGpuLayers != null) 'n_gpu_layers': nGpuLayers,
  };
}