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';
  
  const models = require('./index');
  
  /**
   * Defines a local entity answer.
   *
   * @extends models['SearchResultsAnswer']
   */
  class Places extends models['SearchResultsAnswer'] {
    /**
     * Create a Places.
     * @member {array} value A list of local entities, such as restaurants or
     * hotels.
     */
    constructor() {
      super();
    }
  
    /**
     * Defines the metadata of Places
     *
     * @returns {object} metadata of Places
     *
     */
    mapper() {
      return {
        required: false,
        serializedName: 'Places',
        type: {
          name: 'Composite',
          className: 'Places',
          modelProperties: {
            _type: {
              required: true,
              serializedName: '_type',
              type: {
                name: 'String'
              }
            },
            id: {
              required: false,
              readOnly: true,
              serializedName: 'id',
              type: {
                name: 'String'
              }
            },
            contractualRules: {
              required: false,
              readOnly: true,
              serializedName: 'contractualRules',
              type: {
                name: 'Sequence',
                element: {
                    required: false,
                    serializedName: 'ContractualRulesContractualRuleElementType',
                    type: {
                      name: 'Composite',
                      polymorphicDiscriminator: {
                        serializedName: '_type',
                        clientName: '_type'
                      },
                      uberParent: 'ContractualRulesContractualRule',
                      className: 'ContractualRulesContractualRule'
                    }
                }
              }
            },
            webSearchUrl: {
              required: false,
              readOnly: true,
              serializedName: 'webSearchUrl',
              type: {
                name: 'String'
              }
            },
            queryContext: {
              required: false,
              readOnly: true,
              serializedName: 'queryContext',
              type: {
                name: 'Composite',
                className: 'QueryContext'
              }
            },
            value: {
              required: true,
              serializedName: 'value',
              type: {
                name: 'Sequence',
                element: {
                    required: false,
                    serializedName: 'ThingElementType',
                    type: {
                      name: 'Composite',
                      className: 'Thing'
                    }
                }
              }
            }
          }
        }
      };
    }
  }
  
  module.exports = Places;
  