blob: 2f686bd357ccd133d12f25a0efd78aa7c26dbd4a [file] [log] [blame]
// Copyright 2022 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/developer/forensics/feedback/annotations/decode.h"
#include <fuchsia/feedback/cpp/fidl.h>
namespace forensics::feedback {
Annotations FromFidl(const std::vector<fuchsia::feedback::Annotation>& fidl) {
Annotations annotations;
for (const auto& annotation : fidl) {
annotations.insert({annotation.key, annotation.value});
}
return annotations;
}
} // namespace forensics::feedback