private static void ApplyReportCrashes(ResponseAttributes.Builder builder, JsonObjectValue appConfigObject) { if (!(appConfigObject[ResponseKeyReportCrashes] is JsonNumberValue numberValue)) { return; } var reportCrashes = numberValue.IntValue; builder.WithCaptureCrashes(reportCrashes != 0); }
private static void ApplyReportCrashes(ResponseAttributes.Builder builder, Dictionary <string, string> keyValuePairs) { if (!keyValuePairs.TryGetValue(ResponseKeyReportCrashes, out var reportCrashesString)) { return; } var reportCrashes = int.Parse(reportCrashesString); builder.WithCaptureCrashes(reportCrashes != 0); }