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 person.
   *
   * @extends models['Thing']
   */
  class Person extends models['Thing'] {
    /**
     * Create a Person.
     * @member {string} [jobTitle] The person's job title.
     * @member {string} [twitterProfile] The URL of the person's twitter profile.
     */
    constructor() {
      super();
    }
  
    /**
     * Defines the metadata of Person
     *
     * @returns {object} metadata of Person
     *
     */
    mapper() {
      return {
        required: false,
        serializedName: 'Person',
        type: {
          name: 'Composite',
          polymorphicDiscriminator: {
            serializedName: '_type',
            clientName: '_type'
          },
          uberParent: 'ResponseBase',
          className: 'Person',
          modelProperties: {
            _type: {
              required: true,
              serializedName: '_type',
              isPolymorphicDiscriminator: true,
              type: {
                name: 'String'
              }
            },
            id: {
              required: false,
              readOnly: true,
              serializedName: 'id',
              type: {
                name: 'String'
              }
            },
            readLink: {
              required: false,
              readOnly: true,
              serializedName: 'readLink',
              type: {
                name: 'String'
              }
            },
            webSearchUrl: {
              required: false,
              readOnly: true,
              serializedName: 'webSearchUrl',
              type: {
                name: 'String'
              }
            },
            name: {
              required: false,
              readOnly: true,
              serializedName: 'name',
              type: {
                name: 'String'
              }
            },
            url: {
              required: false,
              readOnly: true,
              serializedName: 'url',
              type: {
                name: 'String'
              }
            },
            image: {
              required: false,
              readOnly: true,
              serializedName: 'image',
              type: {
                name: 'Composite',
                polymorphicDiscriminator: {
                  serializedName: '_type',
                  clientName: '_type'
                },
                uberParent: 'ResponseBase',
                className: 'ImageObject'
              }
            },
            description: {
              required: false,
              readOnly: true,
              serializedName: 'description',
              type: {
                name: 'String'
              }
            },
            alternateName: {
              required: false,
              readOnly: true,
              serializedName: 'alternateName',
              type: {
                name: 'String'
              }
            },
            bingId: {
              required: false,
              readOnly: true,
              serializedName: 'bingId',
              type: {
                name: 'String'
              }
            },
            jobTitle: {
              required: false,
              readOnly: true,
              serializedName: 'jobTitle',
              type: {
                name: 'String'
              }
            },
            twitterProfile: {
              required: false,
              readOnly: true,
              serializedName: 'twitterProfile',
              type: {
                name: 'String'
              }
            }
          }
        }
      };
    }
  }
  
  module.exports = Person;
  