Map<String, dynamic> toMap() { Map<String, dynamic> map = {}; _addToMapIfNotNull("uploadDiagnosticsData", uploadDiagnosticsData, map); return map; }