toJson method

Map<String, dynamic> toJson()

Serializes the benchmark metric to a JSON object.

Implementation

Map<String, dynamic> toJson() {
  return <String, dynamic>{
    'metric': metric,
    'value': value,
  };
}