text: /*
   * Copyright (c) Microsoft Corporation. All rights reserved.
   * Licensed under the MIT License. See License.txt in the project root for
   * license information.
   *
   * Code generated by Microsoft (R) AutoRest Code Generator.
   * Changes may cause incorrect behavior and will be lost if the code is
   * regenerated.
   */
  
  'use strict';
  
  /**
   * Class representing a MetricsResponseMetricsLatencyMetricsWriteLatencyMetrics.
   */
  class MetricsResponseMetricsLatencyMetricsWriteLatencyMetrics {
    /**
     * Create a MetricsResponseMetricsLatencyMetricsWriteLatencyMetrics.
     * @property {string} [name]
     * @property {string} [unit]
     * @property {date} [startTime]
     * @property {date} [endTime]
     * @property {array} [metricValues]
     */
    constructor() {
    }
  
    /**
     * Defines the metadata of MetricsResponseMetricsLatencyMetricsWriteLatencyMetrics
     *
     * @returns {object} metadata of MetricsResponseMetricsLatencyMetricsWriteLatencyMetrics
     *
     */
    mapper() {
      return {
        required: false,
        serializedName: 'MetricsResponse_metrics_latencyMetrics_writeLatencyMetrics',
        type: {
          name: 'Composite',
          className: 'MetricsResponseMetricsLatencyMetricsWriteLatencyMetrics',
          modelProperties: {
            name: {
              required: false,
              serializedName: 'name',
              type: {
                name: 'String'
              }
            },
            unit: {
              required: false,
              serializedName: 'unit',
              type: {
                name: 'String'
              }
            },
            startTime: {
              required: false,
              serializedName: 'startTime',
              type: {
                name: 'DateTime'
              }
            },
            endTime: {
              required: false,
              serializedName: 'endTime',
              type: {
                name: 'DateTime'
              }
            },
            metricValues: {
              required: false,
              serializedName: 'metricValues',
              type: {
                name: 'Sequence',
                element: {
                    required: false,
                    serializedName: 'MetricsResponseMetricsLatencyMetricsWriteLatencyMetricsMetricValuesItemElementType',
                    type: {
                      name: 'Composite',
                      className: 'MetricsResponseMetricsLatencyMetricsWriteLatencyMetricsMetricValuesItem'
                    }
                }
              }
            }
          }
        }
      };
    }
  }
  
  module.exports = MetricsResponseMetricsLatencyMetricsWriteLatencyMetrics;
  