toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return <String, dynamic>{
    'description': description,
    'displayName': displayName,
    'labels': pulumi.Input.mapInputValue<List<LabelDescriptorResponse>, List<Map<String, dynamic>>>(labels, (value) => pulumi.Input.encodeList<LabelDescriptorResponse, Map<String, dynamic>>(value, (value) => value.toMap())),
    'launchStage': launchStage,
    'metadata': pulumi.Input.mapInputValue<MetricDescriptorMetadataResponse, Map<String, dynamic>>(metadata, (value) => value.toMap()),
    'metricKind': metricKind,
    'monitoredResourceTypes': monitoredResourceTypes,
    'name': name,
    'type': type,
    'unit': unit,
    'valueType': valueType,
  };
}