Function convertDiagnosticToMarkerData