blob: b35db3b8a0c3716e4455e66fe5cb5a687ffc3897 [file] [log] [blame]
// Copyright 2019 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:json_annotation/json_annotation.dart';
import 'time_series_entity.dart';
import 'time_series_value.dart';
part 'benchmark_data.g.dart';
@JsonSerializable(nullable: true)
class BenchmarkData {
const BenchmarkData({this.timeSeriesEntity, this.values});
factory BenchmarkData.fromJson(Map<String, dynamic> json) =>
_$BenchmarkDataFromJson(json);
@JsonKey(name: 'Timeseries')
final TimeseriesEntity timeSeriesEntity;
@JsonKey(name: 'Values')
final List<TimeSeriesValue> values;
Map<String, dynamic> toJson() => _$BenchmarkDataToJson(this);
}