Serializes the benchmark metric to a JSON object.
Map<String, dynamic> toJson() { return <String, dynamic>{ 'metric': metric, 'value': value, }; }