Metric constructor

Metric({
  1. Map<String, String>? labels,
  2. String? type,
})

Implementation

factory Metric({
  $core.Map<$core.String, $core.String>? labels,
  $core.String? type,
}) {
  final _result = create();
  if (labels != null) {
    _result.labels.addAll(labels);
  }
  if (type != null) {
    _result.type = type;
  }
  return _result;
}